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

1

... ... @@ -153,6 +153,9 @@ class PrizeController extends WeChatBaseController
public function uploadPost(){
$re=$this->checkUser();
$param = $this->request->param();
if (empty($param['media'])){
return 3;
}
$app = new Application($this->options);
// 获取 access token 实例
$access_token = $app->access_token;
... ...
... ... @@ -171,7 +171,12 @@
if (data == 1) {
alert('保存成功')
window.location.href = "{:url('portal/prize/uploadSuccess')}"
} else {
}
else if (data==3){
alert('请上传小票图片');
return false
}
else {
alert('保存失败');
return false
}
... ...