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