|
@@ -30,6 +30,8 @@ class Active extends Api{
|
|
|
if( !$custom ) return json_send(['code'=>'no_login','msg'=>'请登录','data'=>['error'=>'无对应客户']]);
|
|
|
// 接收参数
|
|
|
$id = request('id',0);
|
|
|
+ // 如果存在的话
|
|
|
+ if( !$id ) return json_send(['code'=>'error','msg'=>'未知的活动ID','data'=>'']);
|
|
|
// 获取客户城市的数据
|
|
|
$data = $Model->getOne($id);
|
|
|
// 如果存在的话
|