zxhxx 3 anos atrás
pai
commit
1490767f9c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/models/store/StoreGp.php

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

@@ -88,7 +88,7 @@ class StoreGp extends BaseModel
                     $n++;
                     if ($n <= 1) continue;
                     $sp_brokeragePrice = $order['team'];
-                    $user = user::find($v);
+                    $user = user::find(self::where('no', $gp_id)->value('uid'));
                     if($user['cycle_time']>time()) {
                         $balance = bcadd($user['brokerage_price'], $sp_brokeragePrice, 2);
                         $mark = "公排号:" . $no . '团队奖' . floatval($sp_brokeragePrice) . "元,订单号:" . $order['order_id'];