Sfoglia il codice sorgente

升级分期商品修改

kevin 1 anno fa
parent
commit
43eaa5012d
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      frontendApi/modules/v1/controllers/UserController.php

+ 2 - 0
frontendApi/modules/v1/controllers/UserController.php

@@ -263,6 +263,8 @@ class UserController extends BaseController {
             $stage = Instalment::getOneStage($userId, 'BD');
             if ($stage && $stage < $instalmentConfig) {
                 $instalment = true;
+            } else if ($isMax && $stage == $instalmentConfig) {
+                $instalment = false;
             } else {
                 $instalment = false;
             }