Bladeren bron

upload bug

wang jun 3 jaren geleden
bovenliggende
commit
69e424f000
2 gewijzigde bestanden met toevoegingen van 19 en 17 verwijderingen
  1. 18 16
      application/index/logic/resumelogic.php
  2. 1 1
      application/index/logic/userlogic.php

+ 18 - 16
application/index/logic/resumelogic.php

@@ -43,21 +43,21 @@ class resumelogic extends baselogic
                 ['name' => 'inventid', 'title' => 'inventid', 'require' => true, 'type' => 'numeric'],
                 ['name' => 'partyid', 'title' => 'partyid', 'type' => 'numeric'],
             ],
-            'getsendedresumebywhere'=>[
-                ['name' => 'openid', 'title' => 'companyid', 'require' => true, 'type' => 'string'],
+            'getsendedresumebywhere' => [
+                ['name' => 'openid', 'title' => 'openid', 'require' => true, 'type' => 'string'],
                 ['name' => 'status', 'title' => 'status', 'type' => 'numeric', 'regex' => '/[0|1|2]{1}/'],
                 ['name' => 'page', 'title' => 'page', 'type' => 'numeric'],
                 ['name' => 'size', 'title' => 'size', 'type' => 'numeric'],
             ],
-            'getinfobyid'=>[
+            'getinfobyid' => [
                 ['name' => 'id', 'title' => 'id', 'require' => true, 'type' => 'numeric'],
             ],
-            'getinfobyuserid'=>[
+            'getinfobyuserid' => [
                 ['name' => 'userid', 'title' => 'userid', 'require' => true, 'type' => 'numeric'],
             ],
-            'getallinfobyid'=>[
+            'getallinfobyid' => [
                 ['name' => 'id', 'title' => 'id', 'require' => true, 'type' => 'numeric'],
-            ]
+            ],
         ];
         return $list;
     }
@@ -221,7 +221,8 @@ class resumelogic extends baselogic
      * 20220119
      * wj
      */
-    public function  getallinfobyid($arr){
+    public function getallinfobyid($arr)
+    {
         $result = $this->checkparam(__FUNCTION__, $arr);
         if (1 != $result['status']) {
             return $result;
@@ -299,7 +300,7 @@ class resumelogic extends baselogic
         $inventid = $arr['inventid'];
         $m_i = new inventmodel();
         $iinfo = $m_i->getinfobyid($inventid);
-        if(empty($iinfo)){
+        if (empty($iinfo)) {
             return backarr(0, "岗位不存在");
         }
         $m_r = new resumemodel();
@@ -308,7 +309,7 @@ class resumelogic extends baselogic
         if (empty($rinfo)) {
             return backarr(0, "简历不存在");
         }
-        if(isset($arr['partyid'])){
+        if (isset($arr['partyid'])) {
             $partyid = $arr['partyid'];
             $m_p = new partymodel();
             $pinfo = $m_p->getinfobyid($partyid);
@@ -336,7 +337,8 @@ class resumelogic extends baselogic
      *
      * @return void
      */
-    public function getsendedresumebywhere($arr){
+    public function getsendedresumebywhere($arr)
+    {
         $result = $this->checkparam(__FUNCTION__, $arr);
         if (1 != $result['status']) {
             return $result;
@@ -348,18 +350,18 @@ class resumelogic extends baselogic
             return backarr(0, "用户信息不存在");
         }
         $where = [];
-        if(isset($arr['status'])){
+        if (isset($arr['status'])) {
             $where['status'] = $arr['status'];
         }
-        if(1!=$uinfo['is_company']){
+        if (1 != $uinfo['is_company']) {
             $where['send_user_id'] = $uinfo['id'];
-        }else{
+        } else {
             $where['company_id'] = $uinfo['company_id'];
         }
         $m_s = new sendrecordmodel();
-        $count = $m_s->getlist($where,'count');
-        if($count<0){
-            return backarr(0,"无数据");
+        $count = $m_s->getlist($where, 'count');
+        if ($count < 0) {
+            return backarr(0, "无数据");
         }
         $page = isset($arr['page']) && !empty($arr['page']) ? $arr['page'] : 1;
         $size = isset($arr['size']) && !empty($arr['size']) ? $arr['size'] : 10;

+ 1 - 1
application/index/logic/userlogic.php

@@ -101,7 +101,7 @@ class userlogic extends baselogic
                 }
             }
         }
-        $updateField = ['user_name', 'telno', 'age', 'gender', 'sfzid', 'email'];
+        $updateField = ['user_name', 'telno', 'age', 'gender', 'sfzid', 'email', 'address', 'nation', 'origin'];
         $updateData = [];
         foreach ($updateField as $key => $value) {
             if (isset($arr[$value])) {