Sfoglia il codice sorgente

每月余额提醒针对湘江银行(湖南银行)运营商指定短信模板

luojianqun 1 anno fa
parent
commit
8c374995e4
1 ha cambiato i file con 12 aggiunte e 5 eliminazioni
  1. 12 5
      App/Crontab/BalanceCrontab.php

+ 12 - 5
App/Crontab/BalanceCrontab.php

@@ -147,7 +147,7 @@ class BalanceCrontab implements JobInterface
                 'keyword1' => ['value'=>$sendData['balance']],
                 'keyword2' => ['value'=>date('Y年m月d日',$sendData['end_time'])],
 //                'remark' => ['value'=>'欢迎登录「'.$sendData['operators_name'].'」小程序选购心仪的商品。'],
-                'remark' => ['value'=>'开工红包派发中,最高888元,点击领取', 'color' => '#E3170D'],
+                'remark' => ['value'=>'做最美的女神,点击领取走心好礼', 'color' => '#E3170D'],
             ]);
             $status = $api_res['response']['errcode']!==0?2:1;  //0无响应 1成功 2失败
             
@@ -155,10 +155,17 @@ class BalanceCrontab implements JobInterface
         //手机短信推送
         if($sendData['push_type']==2){
             $sms = new Sms($sendData['operators_id']);
-            $api_res = $sms->send($sendData['mobile'],'SMS_232170368',[
-                's_1' => $sendData['consume_credit'],
-                's_2' => $sendData['balance'],
-            ]);
+            if ($sendData['operators_id'] == '17') {  //湘江银行
+                $api_res = $sms->send($sendData['mobile'],'SMS_271570466',[
+                    's_1' => $sendData['balance'],
+                ]);
+            } else {
+                $api_res = $sms->send($sendData['mobile'],'SMS_232170368',[
+                    's_1' => $sendData['consume_credit'],
+                    's_2' => $sendData['balance'],
+                ]);
+            }
+
             $status = $api_res['response']['Code']!='OK'?2:1;  //0无响应 1成功 2失败
         }
         //更新任务内容表