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

代理人注册

... ... @@ -414,12 +414,11 @@ class FormController extends WeChatBaseController
$update['order_about_time']=$data4[count($data4)-1]['time'];
Db::name('order')->where('id',$result1)->update($update);
}
return $data1;
$orderModel->commit();
//推送模板消息
if($data1['status'] == 1 || $data1['status'] == 3){
$templateId = 'rQSM5XqM4cJEua6nsJC4IGuLfIOYvkNOVKVABILc8Ro';
$data1 = array(
$data2 = array(
'first'=>"尊敬的用户,您的保单即将生效",
'keyword1'=>$collocation['insurance_num'],
'keyword2'=>$collocation['product_name'],
... ... @@ -429,7 +428,7 @@ class FormController extends WeChatBaseController
);
$url = url('me_guarantee/guarantee_info',array('id'=>$result2),'');
$user1 = Db::name('third_party_user')->where('user_id',$collocation['user_id'])->find();
$this->template($templateId,$data1,$url,$user1['openid']);
$this->template($templateId,$data2,$url,$user1['openid']);
}
$arr['code'] = 20000;
$arr['msg'] = '操作成功!';
... ...