|
@@ -4,6 +4,7 @@ namespace app\api\controller\user;
|
|
|
|
|
|
use app\http\validates\user\AddressValidate;
|
|
|
use app\models\system\SystemCity;
|
|
|
+use app\models\user\UserEnter;
|
|
|
use app\models\user\UserVisit;
|
|
|
use think\db\exception\DataNotFoundException;
|
|
|
use think\db\exception\DbException;
|
|
@@ -61,6 +62,12 @@ class UserController
|
|
|
if ($info['commissionCount'] < 0)
|
|
|
$info['commissionCount'] = 0;
|
|
|
UserLevel::setLevelComplete($info['uid']);
|
|
|
+ $info['is_enter'] = 0;
|
|
|
+ if (UserEnter::where('uid', $info['uid'])->where('status', 0)->find()){
|
|
|
+ $info['is_enter'] = 1;
|
|
|
+ }elseif (UserEnter::where('uid', $info['uid'])->where('status', 1)->find()){
|
|
|
+ $info['is_enter'] = 2;
|
|
|
+ }
|
|
|
return app('json')->success($info);
|
|
|
}
|
|
|
|