首页 > 代码库 > 测试一下

测试一下

这里写markdown文档

```php define(‘IN_ECS‘, true);

require(dirname(FILE) . ‘/includes/init.php‘); require(ROOTPATH . ‘includes/liblicense.php‘); requireonce(‘includes/clsjson.php‘);

define(‘RETURNTYPE‘, empty($POST[‘returndata‘]) ? 1 : ($POST[‘return_data‘] == ‘json‘ ? 2 : 1));

/* 接收传递参数并初步检验 */ if (empty($POST) || empty($POST[‘ac‘])) { api_err(‘0x003‘, ‘no parameter‘); //输出系统级错误:数据异常 }

/* 根据请求类型进入相应的接口处理程序 */ switch ($POST[‘act‘]) { case ‘searchgoodslist‘: searchgoodslist(); break; case ‘searchgoodsdetail‘: searchgoodsdetail(); break; case ‘searchdeletedgoodslist‘: searchdeletedgoodslist(); break; case ‘searchproductslist‘: searchproductslist(); break; case ‘searchsiteinfo‘: searchsiteinfo(); break; default: apierr(‘0x008‘, ‘no this type api‘); //输出系统级错误:数据异常 } ```