修复了OpurchaseclassLogic中的一个错误,优化了代码结构
This commit is contained in:
parent
da30fd7226
commit
b07d38698d
@ -202,7 +202,7 @@ class OpurchaseclassLogic extends BaseLogic
|
|||||||
$time=strtotime(date('Y-m-d',time()));
|
$time=strtotime(date('Y-m-d',time()));
|
||||||
foreach ($supplier_arr as $k => $v) {
|
foreach ($supplier_arr as $k => $v) {
|
||||||
$goods_offer[] = [
|
$goods_offer[] = [
|
||||||
'supplier_id' => $v['id'],
|
'supplier_id' => $v,
|
||||||
'goods_id' => $goods['goods'],
|
'goods_id' => $goods['goods'],
|
||||||
'order_id' => $goods['pid'],
|
'order_id' => $goods['pid'],
|
||||||
'price' => 0,
|
'price' => 0,
|
||||||
@ -224,7 +224,6 @@ class OpurchaseclassLogic extends BaseLogic
|
|||||||
return $goods_offer;
|
return $goods_offer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
self::setError($e->getMessage());
|
self::setError($e->getMessage());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user