作者 何书鹏

后台删除用户同时删除openid

... ... @@ -2,6 +2,7 @@
namespace app\admin\controller\user;
use app\api\model\Third;
use app\common\controller\Backend;
use app\common\library\Auth;
... ... @@ -98,6 +99,8 @@ class User extends Backend
$this->error(__('No Results were found'));
}
Auth::instance()->delete($row['id']);
// 删除openid
Third::where('user_id',$row['id'])->delete();
$this->success();
}
... ...