Commit 8f575f4e by 冷斌

fix bug

parent 3f6e5af7
...@@ -52,7 +52,7 @@ class ProfitController extends HomebaseController ...@@ -52,7 +52,7 @@ class ProfitController extends HomebaseController
$this->display(); $this->display();
} }
public function info() protected function getInfo()
{ {
$uid=I("uid"); $uid=I("uid");
$token=I("token"); $token=I("token");
...@@ -89,6 +89,11 @@ class ProfitController extends HomebaseController ...@@ -89,6 +89,11 @@ class ProfitController extends HomebaseController
} }
} }
$data['certification'] = $certification; $data['certification'] = $certification;
}
public function info()
{
$data = $this->getInfo();
echo json_encode(array("ret"=>200,'data'=>$data,'msg'=>'')); echo json_encode(array("ret"=>200,'data'=>$data,'msg'=>''));
die; die;
} }
......
...@@ -122,11 +122,13 @@ ...@@ -122,11 +122,13 @@
success:function(data){ success:function(data){
if(data.ret==200){ if(data.ret==200){
let d = data.data; let d = data.data;
// _this.identity =
// _this.certification = d.certification; // _this.certification = d.certification;
if (d.identity == 1) { if (d.identity != 1) {
window.location.href = _this.url('/index.php?g=Appapi&m=Profit&a=index'); window.location.href = _this.url('/index.php?g=Appapi&m=Profit&a=index');
return;
} }
}else{ }else{
layer.msg(data.msg); layer.msg(data.msg);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment