|
|
@@ -264,7 +264,11 @@ class Pub extends BaseController
|
|
|
[$uid] = UtilService::getMore([
|
|
|
['uid', '','empty',"用户信息为空"],
|
|
|
], $request,true);
|
|
|
-
|
|
|
+ $userData = (new UserModel)->where("uid",$uid)->find();
|
|
|
+ if(empty($userData)){
|
|
|
+ return app('json')->fail("用户不存在");
|
|
|
+ }
|
|
|
+ $userData->toArray();
|
|
|
$data = (new InfoAudit)->getItem(["uid"=>$uid,"status"=>1]);
|
|
|
if(empty($data)){
|
|
|
return app('json')->fail("当前用户还未通过审核");
|
|
|
@@ -273,7 +277,7 @@ class Pub extends BaseController
|
|
|
$data["is_type_audit"] = (empty($typeData) || $typeData["status"]!=1)?0:1;
|
|
|
//名片浏览次数
|
|
|
(new UserModel)->where('uid', $uid)->inc('card_look_count', 1)->update();
|
|
|
-
|
|
|
+ $data["card_look_count"] = $userData["card_look_count"];
|
|
|
return app('json')->success($data);
|
|
|
}
|
|
|
|