作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

1

... ... @@ -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();
... ...