发送钉钉消息

parent 05354937
Showing with 6 additions and 2 deletions
......@@ -229,11 +229,15 @@ class OrderService
#发送钉钉消息
$saleInfo = CmsUserModel::getInfoByUserId($userInfo["sale_id"]);
$msgData = [
'name' => $userInfo["account_properties"] == 1 ? $userInfo["name"]:$userInfo["company_name"],
'order_sn' => $order_sn,
];
if ($saleInfo["mobile"]){
SendMsg($data,'semour_order',[$saleInfo["mobile"]],0);
SendMsg($msgData,'semour_order',[$saleInfo["mobile"]],0);
}
if ($saleInfo["email"]){
SendMsg($data,'semour_order',[$saleInfo["email"]],1);
SendMsg($msgData,'semour_order',[$saleInfo["email"]],1);
}
return $order_id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment