代码提交
This commit is contained in:
@@ -194,11 +194,12 @@ class AutomaticAssign extends BaseController
|
||||
|
||||
// 参数验证
|
||||
if (empty($wechatFriendId)) {
|
||||
return errorJson('微信好友ID不能为空');
|
||||
return json_encode(['code'=>500,'msg'=>'微信好友ID不能为空']);
|
||||
|
||||
}
|
||||
|
||||
if (empty($toAccountId)) {
|
||||
return errorJson('目标账号ID不能为空');
|
||||
return json_encode(['code'=>500,'msg'=>'目标账号ID不能为空']);
|
||||
}
|
||||
|
||||
|
||||
@@ -246,12 +247,12 @@ class AutomaticAssign extends BaseController
|
||||
$notifyReceiver = !empty($data['notifyReceiver']) ? $data['notifyReceiver'] : input('notifyReceiver', false);
|
||||
|
||||
// 参数验证
|
||||
if (empty($wechatFriendId)) {
|
||||
return errorJson('微信好友ID不能为空');
|
||||
if (empty($wechatFriendIds)) {
|
||||
return json_encode(['code'=>500,'msg'=>'微信好友ID不能为空']);
|
||||
}
|
||||
|
||||
if (empty($toAccountId)) {
|
||||
return errorJson('目标账号ID不能为空');
|
||||
return json_encode(['code'=>500,'msg'=>'目标账号ID不能为空']);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user