master
cody 4 months ago
parent 716984f16c
commit 80da00385b

@ -247,7 +247,7 @@ class SupplyDemandController extends CommonController
if (empty($dialogue)) { if (empty($dialogue)) {
// 不能给自己发信息 // 不能给自己发信息
if ($all['to_user_id'] == $this->getUserId()) { if ($all['to_user_id'] == $this->getUserId()) {
return $this->error('不能给自己发信息'); return $this->fail([ResponseCode::ERROR_BUSINESS, '不能给自己发信息']);
} }
// 创建一条会话 // 创建一条会话
$dialogue = Dialogue::create([ $dialogue = Dialogue::create([

Loading…
Cancel
Save