From 3a7e6f9f5fc3243822a10fdb9d8e1aa51b3b6de3 Mon Sep 17 00:00:00 2001 From: 潘浩文 <phw@bronet.cn> Date: Mon, 22 Oct 2018 16:49:43 +0800 Subject: [PATCH] 1 --- app/portal/controller/PrizeController.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/app/portal/controller/PrizeController.php b/app/portal/controller/PrizeController.php index fd36b77..1e868fa 100644 --- a/app/portal/controller/PrizeController.php +++ b/app/portal/controller/PrizeController.php @@ -139,25 +139,11 @@ class PrizeController extends WeChatBaseController public function getScore(){ $app = new Application($this->options); $js = $app->js; - $jss = $js->config(['chooseImage', 'uploadImage', 'previewImage'], $debug = false, $beta = false, $json = true); + $jss = $js->config(['chooseImage', 'uploadImage', 'previewImage'], $debug = true, $beta = false, $json = true); $this->assign('js',$jss); return $this->fetch('getScore'); } - - //上传小票 - public function upload(){ - $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; - $jss = $js->config(['chooseImage', 'uploadImage', 'previewImage'], $debug = false, $beta = false, $json = true); - $this->assign('js', $jss); - return $this->fetch(); - } //上传小票提交 public function uploadPost(){ $param = $this->request->param(); -- libgit2 0.24.0