|
|
@@ -4,6 +4,7 @@ namespace biz\sj\classes;
|
|
|
|
|
|
use biz\shop\classes\ShopClass;
|
|
|
use bizHd\base\classes\BaseClass;
|
|
|
+use common\components\dict;
|
|
|
use common\components\noticeUtil;
|
|
|
use common\components\orderSn;
|
|
|
use common\components\util;
|
|
|
@@ -46,14 +47,14 @@ class CashClass extends BaseClass
|
|
|
if (bccomp($txBalance, $shop->balance) == 1) {
|
|
|
util::fail('余额有问题,总余额比可提现余额还少');
|
|
|
}
|
|
|
-
|
|
|
+ $miniCashAmount = dict::getDict('miniCashAmount');
|
|
|
if (getenv('YII_ENV', 'local') != 'production') {
|
|
|
- if ($txBalance > 5) {
|
|
|
- util::fail('测试环境提现金额不能超过5元');
|
|
|
+ if ($txBalance > $miniCashAmount) {
|
|
|
+ util::fail("测试环境提现金额不能超过{$miniCashAmount}元");
|
|
|
}
|
|
|
}
|
|
|
- if (bccomp(5, $txBalance) == 1) {
|
|
|
- util::fail('可提现余额不足5元');
|
|
|
+ if (bccomp($miniCashAmount, $txBalance) == 1) {
|
|
|
+ util::fail("可提现余额不足{$miniCashAmount}元");
|
|
|
}
|
|
|
|
|
|
//可提现余额减少,总余额减少,冻结金额增加
|