作者 王晓刚
1 个管道 的构建 通过 耗费 2 秒

托管成功短信提示

@@ -120,6 +120,15 @@ class PayRenewController extends HomeBaseController @@ -120,6 +120,15 @@ class PayRenewController extends HomeBaseController
120 $url = url('index/me_guarantee/guarantee_info',array('id'=>$order_info['id']),'',true); 120 $url = url('index/me_guarantee/guarantee_info',array('id'=>$order_info['id']),'',true);
121 $user1 = Db::name('third_party_user')->where('user_id',$collocation['user_id'])->find(); 121 $user1 = Db::name('third_party_user')->where('user_id',$collocation['user_id'])->find();
122 $this->template($templateId,$data1,$url,$user1['openid']); 122 $this->template($templateId,$data1,$url,$user1['openid']);
  123 + //短信通知
  124 + $user = Db::name('user')->where('id',$order['user_id'])->find();
  125 + $data = array(
  126 + 'content' => "【橙象保险】尊敬的用户您的保单续费成功,保单号为$collocation[insurance_num]。",//短信内容
  127 + 'mobile' => $user['mobile'],//手机号码
  128 + 'productid' => '887361',//产品id
  129 + 'xh' => ''//小号
  130 + );
  131 + $result = send_sms($data);
123 } else { // 用户支付失败 132 } else { // 用户支付失败
124 $update['status'] = 1; 133 $update['status'] = 1;
125 } 134 }