zxhxx 3 rokov pred
rodič
commit
08d57f1233
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      app/models/store/StoreGp.php

+ 3 - 3
app/models/store/StoreGp.php

@@ -81,12 +81,12 @@ class StoreGp extends BaseModel
 
             }
             $no_path = explode(",",$no_path);
-            if ($p_no_cts>0 && $p_no_cts % 12 == 0 && sizeof($no_path) > 1) {
+            if (sizeof($no_path) > 3) {
                 $path = array_reverse($no_path);
                 $n = 0;
                 foreach ($path as $v) {
                     $n++;
-                    if ($n <= 1) continue;
+                    if ($n <=3) continue;
                     $sp_brokeragePrice = $order['team'];
                     $user = user::find(self::where('no', $v)->value('uid'));
                     if($user['cycle_time']>time()) {
@@ -124,7 +124,7 @@ class StoreGp extends BaseModel
         else
         {
             $gp_id = self::where('team_cts','<',12)->value('no');
-            $min = self::where('cts','<',12)->order("id asc")->find();
+            $min = self::where('cts','<',3)->order("id asc")->find();
             $p_no = $min['no'];
             $no_path = explode(",",$min['no_path']);
             $no_path[] = $no;