正在显示
1 个修改的文件
包含
1 行增加
和
15 行删除
@@ -139,25 +139,11 @@ class PrizeController extends WeChatBaseController | @@ -139,25 +139,11 @@ class PrizeController extends WeChatBaseController | ||
139 | public function getScore(){ | 139 | public function getScore(){ |
140 | $app = new Application($this->options); | 140 | $app = new Application($this->options); |
141 | $js = $app->js; | 141 | $js = $app->js; |
142 | - $jss = $js->config(['chooseImage', 'uploadImage', 'previewImage'], $debug = false, $beta = false, $json = true); | 142 | + $jss = $js->config(['chooseImage', 'uploadImage', 'previewImage'], $debug = true, $beta = false, $json = true); |
143 | $this->assign('js',$jss); | 143 | $this->assign('js',$jss); |
144 | return $this->fetch('getScore'); | 144 | return $this->fetch('getScore'); |
145 | } | 145 | } |
146 | 146 | ||
147 | - | ||
148 | - //上传小票 | ||
149 | - public function upload(){ | ||
150 | - $options = [ | ||
151 | - 'app_id' => config('wechat_config.app_id'), | ||
152 | - 'secret' => config('wechat_config.secret'), | ||
153 | - 'payment' => config('wechat_config.payment'), | ||
154 | - ]; | ||
155 | - $app = new Application($options); | ||
156 | - $js = $app->js; | ||
157 | - $jss = $js->config(['chooseImage', 'uploadImage', 'previewImage'], $debug = false, $beta = false, $json = true); | ||
158 | - $this->assign('js', $jss); | ||
159 | - return $this->fetch(); | ||
160 | - } | ||
161 | //上传小票提交 | 147 | //上传小票提交 |
162 | public function uploadPost(){ | 148 | public function uploadPost(){ |
163 | $param = $this->request->param(); | 149 | $param = $this->request->param(); |
-
请 注册 或 登录 后发表评论