修复了OpurchaseclassLogic中的一个错误,优化了代码结构

This commit is contained in:
mkm 2024-05-23 15:57:47 +08:00
parent da30fd7226
commit b07d38698d

View File

@ -202,7 +202,7 @@ class OpurchaseclassLogic extends BaseLogic
$time=strtotime(date('Y-m-d',time()));
foreach ($supplier_arr as $k => $v) {
$goods_offer[] = [
'supplier_id' => $v['id'],
'supplier_id' => $v,
'goods_id' => $goods['goods'],
'order_id' => $goods['pid'],
'price' => 0,
@ -224,7 +224,6 @@ class OpurchaseclassLogic extends BaseLogic
return $goods_offer;
}
}
} else {
}
} catch (\Exception $e) {
self::setError($e->getMessage());