fly 4 anni fa
parent
commit
49d4b9632d

+ 1 - 1
src/Controllers/CompanyAuth/Transformers/UserTransformer.php

@@ -15,7 +15,7 @@ class UserTransformer
         return [
             'id' => $item->id,
             'channel_id' => $item->distribution_channel_id,
-            'register_openid' => $item->register_openid,
+            'register_openid' => $item->openid,
             'register_ip' => $item->register_ip,
             'register_time' =>  (string)$item->created_at,
             'ua' => $item->user_env ? $item->user_env->ua : '',

+ 0 - 1
src/Requests/CompanyAuth/SingleSendOrderRequest.php

@@ -6,7 +6,6 @@ use General\Requests\Request;
 
 class SingleSendOrderRequest extends Request
 {
-    use BaseAuthConfig;
     /**
      * Get the validation rules that apply to the request.
      *

+ 1 - 1
src/Services/Book/BookConfigService.php

@@ -17,7 +17,7 @@ class BookConfigService
     /**
      * 查找书籍免费章节
      */
-    public static function findBookFreeChapters(int $bid)
+    public function findBookFreeChapters(int $bid)
     {
         $exists = BookConfig::where('is_on_shelf', 2)->where('id', $bid)->exists();
         if ($exists) {