11
This commit is contained in:
@@ -126,9 +126,22 @@ class IndexController
|
||||
// \Webman\RedisQueue\Redis::send('notice', $data);
|
||||
|
||||
|
||||
$info = InquiryLog::with(['channelInfo', 'countryInfo', 'enter'])->where('id', 25998)->where('sync_crm', 0)->first();
|
||||
$info = InquiryLog::with(['channelInfo', 'countryInfo', 'enter'])->where('id', 1)->where('sync_crm', 0)->first();
|
||||
|
||||
var_dump($info);
|
||||
var_dump(empty($info->recipient));
|
||||
|
||||
if ($info) {
|
||||
var_dump(11);
|
||||
} else {
|
||||
var_dump(22);
|
||||
}
|
||||
|
||||
|
||||
if ($info !== NULL) {
|
||||
var_dump(33);
|
||||
} else {
|
||||
var_dump(44);
|
||||
}
|
||||
|
||||
return json(['code' => 0, 'msg' => 'success']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user