rabin 3 lat temu
rodzic
commit
b539665054

+ 5 - 1
service/agent/lib/Agreement.php

@@ -1250,7 +1250,11 @@ class Agreement
         # 基础版
         else {
             $name = '基础版';
-            $year = 6;
+            $year = intval($info['soft_cash']/1000);
+            if ($year > 6) {
+                $year = 6;
+            }
+            //$year = 6;
             $cash = '3.1合同金额:1000元/每年,合计总金额['.$info['soft_cash'].']元。';
         }
 

+ 4 - 1
service/agent/lib/Soft_cash.php

@@ -436,7 +436,10 @@ Class Soft_cash
             # 基础版
             else {
                 $name = '基础版';
-                $year = 6;
+                $year = intval($v['cash']/1000);
+                if ($year > 6) {
+                    $year = 6;
+                }
             }
             if($v['fdate']){
                 $fdate = date('Y-m-d H:i',$v['fdate']);