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

+ 8 - 1
app/Models/Rebate.php

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