...
|
...
|
@@ -108,6 +108,14 @@ class AgentController extends WeChatBaseController |
|
|
dump($collocation);
|
|
|
}
|
|
|
public function guarantee_info(){
|
|
|
$options = [
|
|
|
'app_id' => config('wechat_config.app_id'),
|
|
|
'secret' => config('wechat_config.secret'),
|
|
|
'payment' => config('wechat_config.payment'),
|
|
|
];
|
|
|
$app = new Application($options);
|
|
|
$js = $app->js;
|
|
|
$jssdk = $js->config(['chooseImage', 'uploadImage', 'previewImage'], $debug = false, $beta = false, $json = true);
|
|
|
$id = $this->request->param('id');
|
|
|
$orderInfoModel = new OrderInfoModel();
|
|
|
$data = $orderInfoModel->findData(array('o.id'=>$id));
|
...
|
...
|
@@ -117,6 +125,7 @@ class AgentController extends WeChatBaseController |
|
|
array(
|
|
|
'data'=>$data,
|
|
|
'subjoin'=>$subjoin,
|
|
|
'jssdk'=>$jssdk,
|
|
|
)
|
|
|
);
|
|
|
return $this->fetch();
|
...
|
...
|
|