wesmiler il y a 1 an
Parent
commit
de99542062
2 fichiers modifiés avec 2 ajouts et 5 suppressions
  1. 0 3
      app/Helpers/common.php
  2. 2 2
      app/Services/Common/MemberService.php

+ 0 - 3
app/Helpers/common.php

@@ -1616,9 +1616,6 @@ if (!function_exists('save_image')) {
             }
             rename($old_path, ATTACHMENT_PATH . $new_path);
 
-            $uploadFile = new UploadService();
-            $uploadFile->save($new_path, $imgExt, Config::get('constants.uploadFiles.channel.ADMIN'));
-
             return $new_path;
         } else {
             // 保存远程图片

+ 2 - 2
app/Services/Common/MemberService.php

@@ -267,7 +267,7 @@ class MemberService extends BaseService
             ->where(function($query) use($userId){
                 if($userId){
                     $query->whereNotIn('id', [$userId]);
-                    $query->whereRaw("NOT FIND_IN_SET({$userId},parent_ids)");
+//                    $query->whereRaw("NOT FIND_IN_SET({$userId},parent_ids)");
                 }
             })
             ->where(function($query) use($keyword){
@@ -275,7 +275,7 @@ class MemberService extends BaseService
                     $query->where('nickname','like',"{$keyword}%")->orWhere('wallet_url','like',"{$keyword}%");
                 }
             })
-            ->select(['id','wallet_url','code','nickname','status'])
+            ->select(['id','wallet_urls','code','nickname','status'])
             ->get();
         $datas = $datas? $datas->toArray() : [];
         if($datas){