|
|
@@ -26,7 +26,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('status', ProductTeac::Normal)->find();
|
|
|
+ $rows = ProductTeac::where('user_id', $uid)->where('type_id', $typeId)->where('status', ProductTeac::Normal)->find();
|
|
|
if($rows) throw new Exception(__("你有未完成的求购订单、不能重复发布"));
|
|
|
|
|
|
//添加订单信息
|