Ken 1 小时之前
父节点
当前提交
ba27734579
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      app/Models/Rebate.php

+ 5 - 0
app/Models/Rebate.php

@@ -51,6 +51,11 @@ class Rebate extends Authenticatable
     }
 
 
+    protected function getHuishuiRestrictionAttribute($value){
+        $huishui_restriction = Config::where('field', 'huishui_restriction')->first()->val;
+        return $huishui_restriction;
+    }
+
     protected function getHuishuiAmountAttribute($value)
     {
         $value = 0;