|
@@ -16,6 +16,7 @@ use app\common\model\Like;
|
|
|
use app\common\model\MoneyLog;
|
|
|
use app\common\model\Order;
|
|
|
use app\common\model\Selection;
|
|
|
+use app\common\model\Shield;
|
|
|
use app\common\model\SystemMessages;
|
|
|
use app\common\model\UserObject;
|
|
|
use app\common\model\WorkAuthentication;
|
|
@@ -227,7 +228,7 @@ class User extends Api
|
|
|
if ($ret) {
|
|
|
Sms::flush($mobile, 'mobilelogin');
|
|
|
$data = ['userinfo' => $this->auth->getUserinfo()];
|
|
|
- $data['openid'] = (new \app\api\controller\Common())->getOpenid($code);
|
|
|
+// $data['openid'] = (new \app\api\controller\Common())->getOpenid($code);
|
|
|
$this->success(__('Logged in successful'), $data);
|
|
|
} else {
|
|
|
$this->error($this->auth->getError());
|
|
@@ -951,4 +952,13 @@ class User extends Api
|
|
|
$user->save(['status'=>'destruction','reason_cancellation'=>$reason_cancellation]);
|
|
|
$this->success('注销成功');
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 屏蔽列表
|
|
|
+ * @ApiMethod (POST)
|
|
|
+ */
|
|
|
+ public function shield(){
|
|
|
+ $this->success('',Shield::all(['uid'=>$this->auth->id],['userinfo.areaCity']));
|
|
|
+ }
|
|
|
+
|
|
|
}
|