|
@@ -137,15 +137,14 @@ class SmsService
|
|
|
$preOrderWhere['id'] = $preOrderId;
|
|
|
$preOrder = model('PreOrder')->where($preOrderWhere)->find();
|
|
|
$name = isset($preOrder['name']) ? $preOrder['name'] : '';
|
|
|
- $orderNo = isset($preOrder['pre_order_no']) ? $preOrder['pre_order_no'] : '';
|
|
|
- $preTime = !empty($preOrder['pre_time']) ? date('Y-m-d H:i:s',$preOrder['pre_time']) : '';
|
|
|
+ $carNo = isset($preOrder['car_number']) ? $preOrder['car_number'] : '';
|
|
|
+ //您的门店有新的预约订单,预约用户:${name},车牌号:${chepai}。请及时到店处理!
|
|
|
$params = [
|
|
|
'template' => $template,//短息模版
|
|
|
'mobile' => $mobile, //手机号
|
|
|
'data_params' => [
|
|
|
'name' => $name, //联系人
|
|
|
- 'order_no' => $orderNo, //单号
|
|
|
- 'time' => date('Y-m-d H:i:s',$preTime),//预约时间
|
|
|
+ 'chepai' => $carNo, //车牌
|
|
|
],//短信参数
|
|
|
];
|
|
|
$smsRes = $this->send($params);
|