Commit f22c7d84 by 冷斌

fix bug

parent 07d19512
...@@ -320,12 +320,11 @@ class UserauthController extends AdminbaseController ...@@ -320,12 +320,11 @@ class UserauthController extends AdminbaseController
'status' => $_POST['status'], 'status' => $_POST['status'],
'reason' => $_POST['reason'], 'reason' => $_POST['reason'],
]); ]);
var_dump($result);
die;
if ($result) { if ($result) {
$data = $auth->where("uid='{$_POST['uid']}'");
M("users")->where("uid='{$_POST['uid']}'")->save([ M("users")->where("uid='{$_POST['uid']}'")->save([
'status' => $_POST['status'], 'alipay_pay' => $data['alipay_pay'],
'reason' => $_POST['reason'], 'wx_pay' => $data['wx_pay'],
]); ]);
$this->success('修改成功', U('Userauth/index2')); $this->success('修改成功', U('Userauth/index2'));
} else { } else {
......
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