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

托管成功短信提示

@@ -108,6 +108,14 @@ class AgentController extends WeChatBaseController @@ -108,6 +108,14 @@ class AgentController extends WeChatBaseController
108 dump($collocation); 108 dump($collocation);
109 } 109 }
110 public function guarantee_info(){ 110 public function guarantee_info(){
  111 + $options = [
  112 + 'app_id' => config('wechat_config.app_id'),
  113 + 'secret' => config('wechat_config.secret'),
  114 + 'payment' => config('wechat_config.payment'),
  115 + ];
  116 + $app = new Application($options);
  117 + $js = $app->js;
  118 + $jssdk = $js->config(['chooseImage', 'uploadImage', 'previewImage'], $debug = false, $beta = false, $json = true);
111 $id = $this->request->param('id'); 119 $id = $this->request->param('id');
112 $orderInfoModel = new OrderInfoModel(); 120 $orderInfoModel = new OrderInfoModel();
113 $data = $orderInfoModel->findData(array('o.id'=>$id)); 121 $data = $orderInfoModel->findData(array('o.id'=>$id));
@@ -117,6 +125,7 @@ class AgentController extends WeChatBaseController @@ -117,6 +125,7 @@ class AgentController extends WeChatBaseController
117 array( 125 array(
118 'data'=>$data, 126 'data'=>$data,
119 'subjoin'=>$subjoin, 127 'subjoin'=>$subjoin,
  128 + 'jssdk'=>$jssdk,
120 ) 129 )
121 ); 130 );
122 return $this->fetch(); 131 return $this->fetch();