|
|
@@ -793,12 +793,13 @@ class OrderController extends BaseController
|
|
|
if (empty($itemInfo)) {
|
|
|
util::fail('请选择花材哦');
|
|
|
}
|
|
|
+ //判断花材有效性
|
|
|
foreach ($itemInfo as $itemData) {
|
|
|
if (isset($itemData['mainId']) == false || $itemData['mainId'] != $this->mainId) {
|
|
|
util::fail('只能选择同一家的商品下单');
|
|
|
}
|
|
|
}
|
|
|
- //开单提交订单时,别人修改价格,暂成提交价格不是真实卖价问题解决
|
|
|
+ //开单提交订单时,别人修改价格,暂成提交价格不是真实卖价问题解决!!
|
|
|
if ($dealPrice == 0) {
|
|
|
$diff = [];
|
|
|
foreach ($productList as $currentProduct) {
|
|
|
@@ -823,8 +824,6 @@ class OrderController extends BaseController
|
|
|
$connection = Yii::$app->db;//事务处理
|
|
|
$transaction = $connection->beginTransaction();
|
|
|
try {
|
|
|
- //判断花材有效性
|
|
|
- ProductClass::valid($productList, $this->mainId);
|
|
|
$post['product'] = $productList;
|
|
|
//商家开单到时间会自动标记为欠款,所以360天内不过期,以保证足够时间标记欠款,具体参数查看dict local_gys_kd_auto_set_debt_time
|
|
|
$time = time();
|