|
@@ -146,8 +146,8 @@ class BalanceCrontab implements JobInterface
|
|
'first' => ['value'=>'尊敬的客户:您上月共消费了'.$sendData['consume_credit'].'积分'],
|
|
'first' => ['value'=>'尊敬的客户:您上月共消费了'.$sendData['consume_credit'].'积分'],
|
|
'keyword1' => ['value'=>$sendData['balance']],
|
|
'keyword1' => ['value'=>$sendData['balance']],
|
|
'keyword2' => ['value'=>date('Y年m月d日',$sendData['end_time'])],
|
|
'keyword2' => ['value'=>date('Y年m月d日',$sendData['end_time'])],
|
|
-// 'remark' => ['value'=>'欢迎登录「'.$sendData['operators_name'].'」小程序选购心仪的商品。'],
|
|
|
|
- 'remark' => ['value'=>'做最美的女神,点击领取走心好礼', 'color' => '#E3170D'],
|
|
|
|
|
|
+ 'remark' => ['value'=>'欢迎登录「'.$sendData['operators_name'].'」小程序选购心仪的商品。'],
|
|
|
|
+// 'remark' => ['value'=>'做最美的女神,点击领取走心好礼', 'color' => '#E3170D'],
|
|
]);
|
|
]);
|
|
$status = $api_res['response']['errcode']!==0?2:1; //0无响应 1成功 2失败
|
|
$status = $api_res['response']['errcode']!==0?2:1; //0无响应 1成功 2失败
|
|
|
|
|
|
@@ -155,17 +155,10 @@ class BalanceCrontab implements JobInterface
|
|
//手机短信推送
|
|
//手机短信推送
|
|
if($sendData['push_type']==2){
|
|
if($sendData['push_type']==2){
|
|
$sms = new Sms($sendData['operators_id']);
|
|
$sms = new Sms($sendData['operators_id']);
|
|
- 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'],
|
|
|
|
- ]);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ $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失败
|
|
$status = $api_res['response']['Code']!='OK'?2:1; //0无响应 1成功 2失败
|
|
}
|
|
}
|
|
//更新任务内容表
|
|
//更新任务内容表
|