Explorar o código

2023-5-22-1 新增服务区-2

yingzi hai 1 ano
pai
achega
487605a655
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      app/api/controller/User.php

+ 3 - 2
app/api/controller/User.php

@@ -307,7 +307,7 @@ class User extends BaseController
             ['ancestral_place',''],
             ['education',''],
             ['minority',''],
-            ['is_china',''],
+            ['is_china',1],
 
             ['user_work_type_id','0'],//服务职称
             ['service_label',[]],//服务标签
@@ -419,7 +419,7 @@ class User extends BaseController
         $save["service_imgs"]           = empty($post["service_imgs"])         ? "" : implode(",", $post["service_imgs"]);//我的服务展示
 
 
-        $save['is_china']        = $post["is_china"];
+
         $save['work_year']       = empty($post["work_year"])      ? "": $post["work_year"];
         $save['ancestral_place'] = empty($post["ancestral_place"])? "": $post["ancestral_place"];
         $save['education']       = empty($post["education"])      ? "": $post["education"];
@@ -429,6 +429,7 @@ class User extends BaseController
         $save["status"] = 0;
         $save["time"]   = time();
         $save["uid"]    = $request->user["uid"];
+        $save['is_china'] = $post["is_china"];
 
         //服务职称
         $save["user_work_type_id"] = empty($post["user_work_type_id"]) ? 0: (int)$post["user_work_type_id"];