Commit 61e2a97f by 冷斌

fix bug

parent ea07ce03
......@@ -167,7 +167,7 @@ class PassportAction extends CommonAction
$status = 1;
$info = $this->passport->getSuccess();
//$data = ($GLOBALS['ts']['site']['home_url'])?$GLOBALS['ts']['site']['home_url']:0;
if (!$openid) {
if ($openid) {
$open = ['type' => 1, 'uid' => $result['uid']];
if (M('user_openid')->where($open)->find()) {
M('user_openid')->where($open)->delete();
......
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