作者 Cool

模板消息详情地址调整

@@ -494,7 +494,7 @@ class Hot extends Api @@ -494,7 +494,7 @@ class Hot extends Api
494 "remark" => '', 494 "remark" => '',
495 ); 495 );
496 $openid = Db::name('third')->where('user_id',$store['user_id'])->value('openid'); 496 $openid = Db::name('third')->where('user_id',$store['user_id'])->value('openid');
497 - $url = config('option.vue_url') . '/messageto?id='.$msg_id; 497 + $url = config('option.vue_url') . '/messageto?is_template=1&id='.$msg_id;
498 $this->wxsendmessage($openid,$send_data,config('option.template')['msg'],$url); 498 $this->wxsendmessage($openid,$send_data,config('option.template')['msg'],$url);
499 Db::commit(); 499 Db::commit();
500 } catch (PDOException $e) { 500 } catch (PDOException $e) {
@@ -791,7 +791,7 @@ class HouseAdmin extends Api @@ -791,7 +791,7 @@ class HouseAdmin extends Api
791 "remark" => '', 791 "remark" => '',
792 ); 792 );
793 $openid = Db::name('third')->where('user_id',$msg['user_id'])->value('openid'); 793 $openid = Db::name('third')->where('user_id',$msg['user_id'])->value('openid');
794 - $url = config('option.vue_url') . '/messagelk?house_id='.$msg['object_id'].'&user_id='.$msg['object_user_id']; 794 + $url = config('option.vue_url') . '/messagelk?is_template=1&house_id='.$msg['object_id'].'&user_id='.$msg['object_user_id'];
795 $this->wxsendmessage($openid,$send_data,config('option.template')['msg'],$url); 795 $this->wxsendmessage($openid,$send_data,config('option.template')['msg'],$url);
796 Db::commit(); 796 Db::commit();
797 } catch (PDOException $e) { 797 } catch (PDOException $e) {
@@ -407,7 +407,7 @@ class HouseBoard extends Api @@ -407,7 +407,7 @@ class HouseBoard extends Api
407 "remark" => '', 407 "remark" => '',
408 ); 408 );
409 $openid = Db::name('third')->where('user_id',$param['house_user_id'])->value('openid'); 409 $openid = Db::name('third')->where('user_id',$param['house_user_id'])->value('openid');
410 - $url = config('option.vue_url') . '/liuyanxiaoxi?id='.$param['house_user_id']; 410 + $url = config('option.vue_url') . '/liuyanxiaoxi?is_template=1&id='.$param['house_user_id'];
411 $this->wxsendmessage($openid,$send_data,config('option.template')['msg'],$url); 411 $this->wxsendmessage($openid,$send_data,config('option.template')['msg'],$url);
412 Db::commit(); 412 Db::commit();
413 } catch (PDOException $e) { 413 } catch (PDOException $e) {
@@ -1240,7 +1240,7 @@ class Store extends Api @@ -1240,7 +1240,7 @@ class Store extends Api
1240 "remark" => '', 1240 "remark" => '',
1241 ); 1241 );
1242 $openid = Db::name('third')->where('user_id',$msg['user_id'])->value('openid'); 1242 $openid = Db::name('third')->where('user_id',$msg['user_id'])->value('openid');
1243 - $url = config('option.vue_url') . '/dianpuliuyan?id='.$msg['user_id']; 1243 + $url = config('option.vue_url') . '/dianpuliuyan?is_template=1&id='.$msg['user_id'];
1244 $this->wxsendmessage($openid,$send_data,config('option.template')['msg'],$url); 1244 $this->wxsendmessage($openid,$send_data,config('option.template')['msg'],$url);
1245 Db::commit(); 1245 Db::commit();
1246 } catch (PDOException $e) { 1246 } catch (PDOException $e) {