钉钉消息通知

parent 1c15a612
Showing with 8 additions and 1 deletions
...@@ -4,6 +4,7 @@ namespace App\Http\Services; ...@@ -4,6 +4,7 @@ namespace App\Http\Services;
use App\Exceptions\InvalidRequestException; use App\Exceptions\InvalidRequestException;
use App\Http\Models\User\TaxInfoModel; use App\Http\Models\User\TaxInfoModel;
use App\Models\Cms\CmsUserModel;
use App\Models\OrderAddressModel; use App\Models\OrderAddressModel;
use App\Models\OrderItemsModel; use App\Models\OrderItemsModel;
use App\Models\OrderModel; use App\Models\OrderModel;
...@@ -227,7 +228,13 @@ class OrderService ...@@ -227,7 +228,13 @@ class OrderService
$con->commit(); $con->commit();
#发送钉钉消息 #发送钉钉消息
$saleInfo = $userInfo["sale_id"]; $saleInfo = CmsUserModel::getInfoByUserId($userInfo["sale_id"]);
if ($saleInfo["mobile"]){
SendMsg($data,'semour_order',[$saleInfo["mobile"]],0);
}
if ($saleInfo["email"]){
SendMsg($data,'semour_order',[$saleInfo["email"]],1);
}
return $order_id; return $order_id;
}catch (\Exception $e){ }catch (\Exception $e){
......
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