Преглед изворни кода

2023-5-20-1 新增育儿嫂

yingzi пре 1 година
родитељ
комит
bc4b2be1a7
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      app/api/controller/Pub.php

+ 2 - 0
app/api/controller/Pub.php

@@ -321,6 +321,7 @@ class Pub extends BaseController
             $userInfo = (new UserModel)->where('uid', $value['uid'])->find();
             $auth = (new InfoAudit)->where('uid',$value['uid'])->find();
             $template = $this->getShowTemplateItem($value['uid']);
+            $user_work_type_title = (new UserWorkType)->where('id',$auth['user_work_type_id'])->find();
             $rankList[] = [
                 'rank' => $key + 1,
                 'uid' => $value['uid'],
@@ -331,6 +332,7 @@ class Pub extends BaseController
                 'is_type_audit'=>$auth['status']==1?1:0,
                 'ancestral_place'=>$auth['ancestral_place'],
                 'auth_info' => $auth->toArray(),
+                'user_work_type_id' => $user_work_type_title['title'],
             ];
         }
         return app('json')->success($rankList);