Explorar o código

修复:充值套餐金额是小数时报错

Yahoo %!s(int64=4) %!d(string=hai) anos
pai
achega
b4882bfe76
Modificáronse 1 ficheiros con 0 adicións e 20 borrados
  1. 0 20
      app/api/model/recharge/Plan.php

+ 0 - 20
app/api/model/recharge/Plan.php

@@ -33,26 +33,6 @@ class Plan extends PlanModel
         'update_time',
     ];
 
-    /**
-     * 获取器:充值金额
-     * @param $value
-     * @return int
-     */
-    public function getMoneyAttr($value)
-    {
-        return ($value == $intValue = (int)$value) ? $intValue : $value;
-    }
-
-    /**
-     * 获取器:赠送金额
-     * @param $value
-     * @return int
-     */
-    public function getGiftMoneyAttr($value)
-    {
-        return ($value == $intValue = (int)$value) ? $intValue : $value;
-    }
-
     /**
      * 获取可用的充值套餐列表
      * @return \think\Collection