Merge branch 'develop'

This commit is contained in:
mzl
2025-08-25 16:39:48 +08:00
parent 1bbde4562a
commit b15c03f009
6 changed files with 254 additions and 46 deletions
+20 -14
View File
@@ -116,27 +116,33 @@ class IndexController
// 'recipient' => [1],
// ];
$data['recipient'] = [1, 74];
// // 同步推送
// (new MessageNotificationsService())->pushNotice($data);
// $data['recipient'] = [1, 74];
// // // 同步推送
// // (new MessageNotificationsService())->pushNotice($data);
// 异步推送
\Webman\RedisQueue\Redis::send('notice', $data);
// // 异步推送
// \Webman\RedisQueue\Redis::send('notice', $data);
return 'success';
$info = InquiryLog::with(['channelInfo', 'countryInfo', 'enter'])->where('id', 1)->where('sync_crm', 0)->first();
// return json($data);
var_dump(empty($info->recipient));
// $phone = '';
// $email = '';
if ($info) {
var_dump(11);
} else {
var_dump(22);
}
// $userByPhone = User::where('corp_id', 2)->where('phone', $phone)->where('phone', '!=', '')->first();
// $userByEmail = User::where('corp_id', 2)->where('email', $email)->where('email', '!=', '')->first();
// $user = $userByPhone ?: $userByEmail;
// return json($user);
if ($info !== NULL) {
var_dump(33);
} else {
var_dump(44);
}
return json(['code' => 0, 'msg' => 'success']);
}
}