Commit b0393a3ca6a9bb064511346fcde4c1f299368d87

Authored by weigong
1 parent bb9baa4c
Exists in master

1. 更换短信模板

2. 环境配置修改
app-wx/modules/order/controllers/DefaultController.php
@@ -151,13 +151,14 @@ class DefaultController extends BaseController @@ -151,13 +151,14 @@ class DefaultController extends BaseController
151 private function sendFinishSMS($orderModel, $userId) 151 private function sendFinishSMS($orderModel, $userId)
152 { 152 {
153 /* 153 /*
154 - 您好,${maintainer}已对您的车维修完成,点击http://gkauto.jiwork.com/site/t?o=${code}可以给本次服务评分。如有意见请拨打投诉热线:${tel}  
155 - * */ 154 + 您好,${maintainer}已完成您的爱车维修,点击http://gkauto.jiwork.com/site/t?o=${code} 了解维修详情,同时您可以对本次服务进行评分。如有问题请拨打服务监督电话${tel}, 维修厂电话${rtel}
  155 + */
156 $smsVars = ['maintainer' => '', 'code' => '', 'tel' => '']; 156 $smsVars = ['maintainer' => '', 'code' => '', 'tel' => ''];
157 157
158 $smsVars['tel'] = Yii::$app->params['SERVICE_PHONE']; 158 $smsVars['tel'] = Yii::$app->params['SERVICE_PHONE'];
159 $smsVars['maintainer'] = Utils::cutStrTxt($orderModel->maintainer_name); 159 $smsVars['maintainer'] = Utils::cutStrTxt($orderModel->maintainer_name);
160 $smsVars['code'] = $orderModel->short_uuid." "; //防止后面的文字和这个参数粘贴在一起 160 $smsVars['code'] = $orderModel->short_uuid." "; //防止后面的文字和这个参数粘贴在一起
  161 + $smsVars['rtel'] = $orderModel->maintainer_tel; // 维修厂电话
161 $phone = $orderModel->contact_mobile; 162 $phone = $orderModel->contact_mobile;
162 $sms = new SmsMessage(); 163 $sms = new SmsMessage();
163 return $sms->sendFinishInfo($phone, $smsVars); 164 return $sms->sendFinishInfo($phone, $smsVars);
domain/system/SmsMessage.php
@@ -119,12 +119,12 @@ class SmsMessage @@ -119,12 +119,12 @@ class SmsMessage
119 119
120 /* 120 /*
121 * 模版CODE: SMS_181862780 121 * 模版CODE: SMS_181862780
122 - * 您好,${maintainer}已完成您的爱车维修,点击http://gkauto.jiwork.com/site/t?o=${code} 了解维修详情,同时您可以对本次服务进行评分。如有问题请拨打服务监督电话${tel} 122 + * 原来: 您好,${maintainer}已完成您的爱车维修,点击http://gkauto.jiwork.com/site/t?o=${code} 了解维修详情,同时您可以对本次服务进行评分。如有问题请拨打服务监督电话${tel}
  123 + * 修改: 您好,${maintainer}已完成您的爱车维修,点击http://gkauto.jiwork.com/site/t?o=${code} 了解维修详情,同时您可以对本次服务进行评分。如有问题请拨打服务监督电话${tel}, 维修厂电话${rtel}
123 * */ 124 * */
124 public function sendFinishInfo($phone, $postData) 125 public function sendFinishInfo($phone, $postData)
125 { 126 {
126 - //return true;  
127 $signName = $this->getSignName(); 127 $signName = $this->getSignName();
128 - return $this->send($phone, $signName, "SMS_181862780", $postData); 128 + return $this->send($phone, $signName, "SMS_189240887", $postData);
129 } 129 }
130 } 130 }
131 \ No newline at end of file 131 \ No newline at end of file
environments/dev/common/config/params-local.php
1 <?php 1 <?php
2 return [ 2 return [
  3 + 'frontEndBaseUrl' => 'http://gkauto.jiwork.com/',
  4 + 'SERVICE_PHONE' => '13193372998',
  5 + 'sms'=>[
  6 + 'smsKey'=>'LTAI4FefEf8UzvCMgHHA7NSY',
  7 + 'smsSecret'=>'CuVsg7DA9FDECarPyuXCEmutA7tPpn',
  8 + 'smsSignName'=>'广昆汽车',
  9 + ],
3 ]; 10 ];
environments/index.php
@@ -37,7 +37,7 @@ return [ @@ -37,7 +37,7 @@ return [
37 ], 37 ],
38 'setCookieValidationKey' => [ 38 'setCookieValidationKey' => [
39 'app-ht/config/main-local.php', 39 'app-ht/config/main-local.php',
40 - 'app-api/config/main-local.php', 40 + 'app-wx/config/main-local.php',
41 ], 41 ],
42 ], 42 ],
43 'Test' => [ 43 'Test' => [
@@ -50,7 +50,7 @@ return [ @@ -50,7 +50,7 @@ return [
50 ], 50 ],
51 'setCookieValidationKey' => [ 51 'setCookieValidationKey' => [
52 'app-ht/config/main-local.php', 52 'app-ht/config/main-local.php',
53 - 'app-api/config/main-local.php', 53 + 'app-wx/config/main-local.php',
54 ], 54 ],
55 ], 55 ],
56 'Production' => [ 56 'Production' => [
@@ -62,7 +62,7 @@ return [ @@ -62,7 +62,7 @@ return [
62 ], 62 ],
63 'setCookieValidationKey' => [ 63 'setCookieValidationKey' => [
64 'app-ht/config/main-local.php', 64 'app-ht/config/main-local.php',
65 - 'app-api/config/main-local.php', 65 + 'app-wx/config/main-local.php',
66 ], 66 ],
67 ] 67 ]
68 ]; 68 ];
environments/prod/common/config/params-local.php
1 <?php 1 <?php
2 return [ 2 return [
  3 + 'frontEndBaseUrl' => 'http://gkauto.jiwork.com/',
  4 + 'SERVICE_PHONE' => '13193372998',
  5 + 'sms'=>[
  6 + 'smsKey'=>'LTAI4FefEf8UzvCMgHHA7NSY',
  7 + 'smsSecret'=>'CuVsg7DA9FDECarPyuXCEmutA7tPpn',
  8 + 'smsSignName'=>'广昆汽车',
  9 + ],
3 ]; 10 ];
environments/test/common/config/params-local.php
1 <?php 1 <?php
2 return [ 2 return [
  3 + 'frontEndBaseUrl' => 'http://gkauto.jiwork.com/',
  4 + 'SERVICE_PHONE' => '13193372998',
  5 + 'sms'=>[
  6 + 'smsKey'=>'LTAI4FefEf8UzvCMgHHA7NSY',
  7 + 'smsSecret'=>'CuVsg7DA9FDECarPyuXCEmutA7tPpn',
  8 + 'smsSignName'=>'广昆汽车',
  9 + ],
3 ]; 10 ];