diff --git a/app-wx/modules/order/controllers/DefaultController.php b/app-wx/modules/order/controllers/DefaultController.php index 108cdac..2ceef20 100644 --- a/app-wx/modules/order/controllers/DefaultController.php +++ b/app-wx/modules/order/controllers/DefaultController.php @@ -151,13 +151,14 @@ class DefaultController extends BaseController private function sendFinishSMS($orderModel, $userId) { /* - 您好,${maintainer}已对您的车维修完成,点击http://gkauto.jiwork.com/site/t?o=${code}可以给本次服务评分。如有意见请拨打投诉热线:${tel} - * */ + 您好,${maintainer}已完成您的爱车维修,点击http://gkauto.jiwork.com/site/t?o=${code} 了解维修详情,同时您可以对本次服务进行评分。如有问题请拨打服务监督电话${tel}, 维修厂电话${rtel} + */ $smsVars = ['maintainer' => '', 'code' => '', 'tel' => '']; $smsVars['tel'] = Yii::$app->params['SERVICE_PHONE']; $smsVars['maintainer'] = Utils::cutStrTxt($orderModel->maintainer_name); $smsVars['code'] = $orderModel->short_uuid." "; //防止后面的文字和这个参数粘贴在一起 + $smsVars['rtel'] = $orderModel->maintainer_tel; // 维修厂电话 $phone = $orderModel->contact_mobile; $sms = new SmsMessage(); return $sms->sendFinishInfo($phone, $smsVars); diff --git a/domain/system/SmsMessage.php b/domain/system/SmsMessage.php index 84e3a72..c445bad 100644 --- a/domain/system/SmsMessage.php +++ b/domain/system/SmsMessage.php @@ -119,12 +119,12 @@ class SmsMessage /* * 模版CODE: SMS_181862780 - * 您好,${maintainer}已完成您的爱车维修,点击http://gkauto.jiwork.com/site/t?o=${code} 了解维修详情,同时您可以对本次服务进行评分。如有问题请拨打服务监督电话${tel} + * 原来: 您好,${maintainer}已完成您的爱车维修,点击http://gkauto.jiwork.com/site/t?o=${code} 了解维修详情,同时您可以对本次服务进行评分。如有问题请拨打服务监督电话${tel} + * 修改: 您好,${maintainer}已完成您的爱车维修,点击http://gkauto.jiwork.com/site/t?o=${code} 了解维修详情,同时您可以对本次服务进行评分。如有问题请拨打服务监督电话${tel}, 维修厂电话${rtel} * */ public function sendFinishInfo($phone, $postData) { - //return true; $signName = $this->getSignName(); - return $this->send($phone, $signName, "SMS_181862780", $postData); + return $this->send($phone, $signName, "SMS_189240887", $postData); } } \ No newline at end of file diff --git a/environments/dev/common/config/params-local.php b/environments/dev/common/config/params-local.php index d0b9c34..488c511 100644 --- a/environments/dev/common/config/params-local.php +++ b/environments/dev/common/config/params-local.php @@ -1,3 +1,10 @@ 'http://gkauto.jiwork.com/', + 'SERVICE_PHONE' => '13193372998', + 'sms'=>[ + 'smsKey'=>'LTAI4FefEf8UzvCMgHHA7NSY', + 'smsSecret'=>'CuVsg7DA9FDECarPyuXCEmutA7tPpn', + 'smsSignName'=>'广昆汽车', + ], ]; diff --git a/environments/index.php b/environments/index.php index 7f6653b..54967a3 100644 --- a/environments/index.php +++ b/environments/index.php @@ -37,7 +37,7 @@ return [ ], 'setCookieValidationKey' => [ 'app-ht/config/main-local.php', - 'app-api/config/main-local.php', + 'app-wx/config/main-local.php', ], ], 'Test' => [ @@ -50,7 +50,7 @@ return [ ], 'setCookieValidationKey' => [ 'app-ht/config/main-local.php', - 'app-api/config/main-local.php', + 'app-wx/config/main-local.php', ], ], 'Production' => [ @@ -62,7 +62,7 @@ return [ ], 'setCookieValidationKey' => [ 'app-ht/config/main-local.php', - 'app-api/config/main-local.php', + 'app-wx/config/main-local.php', ], ] ]; diff --git a/environments/prod/common/config/params-local.php b/environments/prod/common/config/params-local.php index d0b9c34..488c511 100644 --- a/environments/prod/common/config/params-local.php +++ b/environments/prod/common/config/params-local.php @@ -1,3 +1,10 @@ 'http://gkauto.jiwork.com/', + 'SERVICE_PHONE' => '13193372998', + 'sms'=>[ + 'smsKey'=>'LTAI4FefEf8UzvCMgHHA7NSY', + 'smsSecret'=>'CuVsg7DA9FDECarPyuXCEmutA7tPpn', + 'smsSignName'=>'广昆汽车', + ], ]; diff --git a/environments/test/common/config/params-local.php b/environments/test/common/config/params-local.php index d0b9c34..488c511 100644 --- a/environments/test/common/config/params-local.php +++ b/environments/test/common/config/params-local.php @@ -1,3 +1,10 @@ 'http://gkauto.jiwork.com/', + 'SERVICE_PHONE' => '13193372998', + 'sms'=>[ + 'smsKey'=>'LTAI4FefEf8UzvCMgHHA7NSY', + 'smsSecret'=>'CuVsg7DA9FDECarPyuXCEmutA7tPpn', + 'smsSignName'=>'广昆汽车', + ], ]; -- libgit2 0.21.0