|
|
@@ -29,8 +29,8 @@ class TeacLogin
|
|
|
*/
|
|
|
public static function setCreateTrade(int $uid, float $price, int $stock, int $typeId, float $frozen):object
|
|
|
{
|
|
|
- $rows = ProductTeac::where('user_id', $uid)->where('type_id', $typeId)->where('status', ProductTeac::Normal)->find();
|
|
|
- if($rows) throw new Exception(__("你有未完成的求购订单、不能重复发布"));
|
|
|
+ // $rows = ProductTeac::where('user_id', $uid)->where('type_id', $typeId)->where('status', ProductTeac::Normal)->find();
|
|
|
+ // if($rows) throw new Exception(__("你有未完成的求购订单、不能重复发布"));
|
|
|
|
|
|
//添加订单信息
|
|
|
return ProductTeac::setUserCreateOrder($uid, $typeId, $price, $stock, config('teac_trade.'. self::$feeList[$typeId]), $frozen);
|