north 7 жил өмнө
parent
commit
b3040b0725

+ 6 - 0
www/protected/components/CommonSMS.php

@@ -28,6 +28,12 @@ class CommonSMS{
             case 'yiguanjia_code'://订单支付成功后发送短信
                 Service::factory('SendSMSService')->tpl_send_sms(1997758,'#code#='.$params['code'],$params['mobile']);
                 break;
+            case 'jinguojiazheng_code'://订单支付成功后发送短信
+                Service::factory('SendSMSService')->tpl_send_sms(2163484,'#code#='.$params['code'],$params['mobile']);
+                break;
+            case 'jinguo_order_retrieve'://订单退款后发送短信
+                Service::factory('SendSMSService')->tpl_send_sms(1594478,'#user_name#'.$params['user_name'].'&#year#'.$params['year'].'&#month#='.$params['month'].'&#day#='.$params['day'].'&#hour#'.$params['hour'].'&#minute#'.$params['minute'].'&#Interviewt#'.$params['Interviewt'].'&#store#'.$params['store'].'&#address#='.$params['address'].'&#mobile#='.$params['mobile'],$params['mobile']);
+                break;
             default:
                 return false;
                 break;

+ 2 - 0
www/protected/modules/moonclub/controllers/ReserveController.php

@@ -262,6 +262,8 @@ class ReserveController extends MoonClubBaseController
         $sms_type ='';
         if ($type == 0 ) {
             $sms_type = 'yuezihuisuo_code';
+        } else if ($type == 2 ) {
+            $sms_type = 'jinguojiazheng_code';
         } else {
             $sms_type = 'yiguanjia_code';
         }