作者 潘浩文
1 个管道 的构建 通过 耗费 1 秒

意见修改

@@ -143,12 +143,13 @@ class PayController extends WeChatBaseController @@ -143,12 +143,13 @@ class PayController extends WeChatBaseController
143 $app = new Application($this->options); 143 $app = new Application($this->options);
144 $notice = $app->notice; 144 $notice = $app->notice;
145 $userId = Db::name('users')->where('id',$order['users_id'])->find()['open_id']; 145 $userId = Db::name('users')->where('id',$order['users_id'])->find()['open_id'];
146 - $templateId = 'ngqIpbwh8bUfcSsECmogfXcV14J0tQlEpBO27izEYtY'; 146 + $templateId = 'IS6PSpoH7gFVH8Z_MJeXBKQe0g8PEYnhFxBe0-p2Y5A';
147 $url = ''; 147 $url = '';
148 $data = array( 148 $data = array(
149 - "first" => "恭喜你购买成功!",  
150 - "name" => "巧克力",  
151 - "price" => "39.8元", 149 + "first" => "恭喜您点亮福牌成功!",
  150 + "keyword1" => $light['price'],
  151 + "keyword2" => $light['term'],
  152 + "keyword3" => date($order['end_time']),
152 "remark" => "欢迎再次购买!", 153 "remark" => "欢迎再次购买!",
153 ); 154 );
154 155