Przeglądaj źródła

发布求购出售信息

afa 6 miesięcy temu
rodzic
commit
9c29baa306
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      application/api/logic/TeacLogin.php

+ 1 - 1
application/api/logic/TeacLogin.php

@@ -29,7 +29,7 @@ class TeacLogin
     */
     public static  function setCreateTrade(int $uid, float $price, int $stock, int $typeId, float $frozen)//:object
     {
-        $rows = ProductTeac::where('user_id', $uid)->where('trade_id', $typeId)->where('price', $price)->where('status', ProductTeac::Normal)->find();
+        $rows = ProductTeac::where('user_id', $uid)->where('type_id', $typeId)->where('price', $price)->where('status', ProductTeac::Normal)->find();
         $fee = config('teac_trade.'. self::$feeList[$typeId]);
         if($rows)  {
             $total_price = bcmul($price, $stock, 4);