代码提交

This commit is contained in:
wong
2025-07-11 17:01:48 +08:00
parent a3a3b12e65
commit 80b52ce8c9

View File

@@ -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不能为空']);
}