正在显示
1 个修改的文件
包含
9 行增加
和
0 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论