Ken 1 week ago
parent
commit
a61d7cb56d
2 changed files with 13 additions and 11 deletions
  1. 2 9
      app/Services/BalanceLogService.php
  2. 11 2
      app/Services/BaseService.php

+ 2 - 9
app/Services/BalanceLogService.php

@@ -10,16 +10,9 @@ class BalanceLogService extends BaseService
 {
 
     public static $RW = ['充值','提现','人工充值','人工扣款','三方提现','资产转移','比比返','投注','回水'];
-    public static $model= BalanceLog::class;
+    public static $MODEL= BalanceLog::class;
+
 
-    /**
-     * @description: 枚举
-     * @return {*}
-     */
-    public static function enum(): string
-    {
-        return '';
-    }
 
     /**
      * @description: 获取查询条件

+ 11 - 2
app/Services/BaseService.php

@@ -18,7 +18,7 @@ class BaseService
     const YES = 1;
     const NOT = 0;
 
-    public static $model= "";
+    public static $MODEL= "";
 
     /**
      * @description: 模型
@@ -26,7 +26,16 @@ class BaseService
      */
     public static function model(): string
     {
-        return static::model();
+        return static::$MODEL;
+    }
+
+    /**
+     * @description: 枚举
+     * @return {*}
+     */
+    public static function enum(): string
+    {
+        return '';
     }
 
     /**