正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
@@ -98,9 +98,11 @@ class PayRenewController extends HomeBaseController | @@ -98,9 +98,11 @@ class PayRenewController extends HomeBaseController | ||
98 | // 不是已经支付状态则修改为已经支付状态 | 98 | // 不是已经支付状态则修改为已经支付状态 |
99 | $update['status'] = 2; | 99 | $update['status'] = 2; |
100 | $orderModel = new OrderModel(); | 100 | $orderModel = new OrderModel(); |
101 | - $order = $orderModel->findData(array('num'=>$out_trade_no)); | 101 | + $order = $orderModel->findData(array('id'=>$order_renew['order_id'])); |
102 | + cache('order',$order); | ||
102 | $collocationModel = new CollocationModel(); | 103 | $collocationModel = new CollocationModel(); |
103 | $collocation = $collocationModel->findData(array('c.id'=>$order['collocation_id'])); | 104 | $collocation = $collocationModel->findData(array('c.id'=>$order['collocation_id'])); |
105 | + cache('collocation',$collocation); | ||
104 | //推送模板消息 | 106 | //推送模板消息 |
105 | $templateId = 'HVcMt58ic_QhO4yHm4IONQE466ijqQxF0l7rPDcQK1o'; | 107 | $templateId = 'HVcMt58ic_QhO4yHm4IONQE466ijqQxF0l7rPDcQK1o'; |
106 | $data1 = array( | 108 | $data1 = array( |
@@ -114,6 +116,7 @@ class PayRenewController extends HomeBaseController | @@ -114,6 +116,7 @@ class PayRenewController extends HomeBaseController | ||
114 | ); | 116 | ); |
115 | $orderinfoModel = new OrderInfoModel(); | 117 | $orderinfoModel = new OrderInfoModel(); |
116 | $order_info = $orderinfoModel->findData2(array('order_id'=>$order['id'])); | 118 | $order_info = $orderinfoModel->findData2(array('order_id'=>$order['id'])); |
119 | + cache('order_info',$order_info); | ||
117 | $url = url('me_guarantee/guarantee_info',array('id'=>$order_info['id']),'',true); | 120 | $url = url('me_guarantee/guarantee_info',array('id'=>$order_info['id']),'',true); |
118 | $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(); |
119 | $this->template($templateId,$data1,$url,$user1['openid']); | 122 | $this->template($templateId,$data1,$url,$user1['openid']); |
-
请 注册 或 登录 后发表评论