...
|
...
|
@@ -98,9 +98,11 @@ class PayRenewController extends HomeBaseController |
|
|
// 不是已经支付状态则修改为已经支付状态
|
|
|
$update['status'] = 2;
|
|
|
$orderModel = new OrderModel();
|
|
|
$order = $orderModel->findData(array('num'=>$out_trade_no));
|
|
|
$order = $orderModel->findData(array('id'=>$order_renew['order_id']));
|
|
|
cache('order',$order);
|
|
|
$collocationModel = new CollocationModel();
|
|
|
$collocation = $collocationModel->findData(array('c.id'=>$order['collocation_id']));
|
|
|
cache('collocation',$collocation);
|
|
|
//推送模板消息
|
|
|
$templateId = 'HVcMt58ic_QhO4yHm4IONQE466ijqQxF0l7rPDcQK1o';
|
|
|
$data1 = array(
|
...
|
...
|
@@ -114,6 +116,7 @@ class PayRenewController extends HomeBaseController |
|
|
);
|
|
|
$orderinfoModel = new OrderInfoModel();
|
|
|
$order_info = $orderinfoModel->findData2(array('order_id'=>$order['id']));
|
|
|
cache('order_info',$order_info);
|
|
|
$url = url('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']);
|
...
|
...
|
|