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