|
|
@@ -5,6 +5,7 @@ use common\helpers\Cache;
|
|
|
use common\helpers\Date;
|
|
|
use common\components\Model;
|
|
|
use common\helpers\Form;
|
|
|
+use common\helpers\LoggerTool;
|
|
|
use common\helpers\PayStack;
|
|
|
use common\helpers\user\Balance;
|
|
|
use common\helpers\user\Cash;
|
|
|
@@ -543,7 +544,8 @@ class OrderForm extends Model
|
|
|
$userInstalmentInfo = Instalment::getInfo($loginUserId);
|
|
|
|
|
|
// 分期的总期数
|
|
|
- $instalment = floatval(Cache::getSystemConfig()['instalment']['VALUE'] ?? 3);
|
|
|
+ $instalment = intval(Cache::getSystemConfig()['instalment']['VALUE'] ?? 3);
|
|
|
+ LoggerTool::debug(['instalment']);
|
|
|
if ($userStage != $instalment){
|
|
|
if($userInstalmentInfo){
|
|
|
if($userInstalmentInfo['STAGE']>0 && $userInstalmentInfo['ORDER_TYPE']!='FX'){
|
|
|
@@ -877,7 +879,7 @@ class OrderForm extends Model
|
|
|
$userStage = Instalment::getStage($userId);
|
|
|
$userInstalmentInfo = Instalment::getInfo($userId);
|
|
|
// 分期的总期数
|
|
|
- $instalment = floatval(Cache::getSystemConfig()['instalment']['VALUE'] ?? 3);
|
|
|
+ $instalment = intval(Cache::getSystemConfig()['instalment']['VALUE'] ?? 3);
|
|
|
if ($userStage == $instalment){
|
|
|
|
|
|
}else{
|