ts
This commit is contained in:
@@ -9,6 +9,7 @@ use Webman\RedisQueue\Consumer;
|
|||||||
use app\common\model\User;
|
use app\common\model\User;
|
||||||
use app\common\utils\FeishuMessage;
|
use app\common\utils\FeishuMessage;
|
||||||
use support\exception\BusinessException;
|
use support\exception\BusinessException;
|
||||||
|
use support\Log;
|
||||||
|
|
||||||
class InquiryToCrm implements Consumer
|
class InquiryToCrm implements Consumer
|
||||||
{
|
{
|
||||||
@@ -44,7 +45,6 @@ class InquiryToCrm implements Consumer
|
|||||||
// $scene = 'inquiry-group-send';
|
// $scene = 'inquiry-group-send';
|
||||||
// $receiveType = 'group';
|
// $receiveType = 'group';
|
||||||
}
|
}
|
||||||
var_dump($uinfo);
|
|
||||||
// 同步客户数据
|
// 同步客户数据
|
||||||
$crmCustomer = new CrmCustomer();
|
$crmCustomer = new CrmCustomer();
|
||||||
$crmCustomer->sn = $info->order_no;
|
$crmCustomer->sn = $info->order_no;
|
||||||
@@ -71,12 +71,9 @@ class InquiryToCrm implements Consumer
|
|||||||
if ($uinfo && $uinfo->email) {
|
if ($uinfo && $uinfo->email) {
|
||||||
$options = [
|
$options = [
|
||||||
'id' => $info->id,
|
'id' => $info->id,
|
||||||
'email' => $uinfo->email,
|
'email' => $uinfo->email
|
||||||
// 'category' => 'inquiry',
|
|
||||||
// 'scene' => $scene,
|
|
||||||
// 'receive_type' => $receiveType
|
|
||||||
];
|
];
|
||||||
var_dump($options);
|
Log::info('发送邮件消息:' . json_encode($options));
|
||||||
\Webman\RedisQueue\Redis::send('email-message', $options);
|
\Webman\RedisQueue\Redis::send('email-message', $options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user