|
|
@@ -179,7 +179,14 @@ class User extends BaseController
|
|
|
* @param Request $request
|
|
|
*/
|
|
|
public function getUserCardInfo(Request $request){
|
|
|
- $data = (new InfoAudit)->where("uid",$request->user["uid"])->where("status",1)->order("id","desc")->find();
|
|
|
+ $data = (new InfoAudit)
|
|
|
+ ->alias("u")
|
|
|
+ ->field("u.*,wt.title as work_type_title")
|
|
|
+ ->join("user_work_type wt","wt.id = u.work_type_id","left")
|
|
|
+ ->where("u.uid",$request->user["uid"])
|
|
|
+ ->where("u.status",1)
|
|
|
+ ->order("u.id","desc")
|
|
|
+ ->find();
|
|
|
if(empty($data)){
|
|
|
return app('json')->fail("您还没有通过名片信息审核");
|
|
|
}
|