|
|
@@ -389,14 +389,16 @@ class OrderController extends BaseController
|
|
|
}
|
|
|
$productList = json_decode($productJson, true);
|
|
|
if (empty($productList) && empty($groupId)) {
|
|
|
- if (isset($post['lsGoodsPrice']) == false || $post['lsGoodsPrice'] <= 0) {
|
|
|
- util::fail('请填写金额或选商品');
|
|
|
+ //商家上传图片开单并要求生成制作单
|
|
|
+ if (isset($post['unitGoodsPrice']) && !empty($post['unitGoodsPrice'])) {
|
|
|
+ $productList = GoodsClass::kdWorkGoods($post);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //商家上传图片开单并要求生成制作单
|
|
|
- if (isset($post['cover']) && !empty($post['cover'])) {
|
|
|
- $productList = GoodsClass::kdWorkGoods($post);
|
|
|
+ if (empty($productList) && empty($groupId)) {
|
|
|
+ if (isset($post['lsGoodsPrice']) == false || $post['lsGoodsPrice'] <= 0) {
|
|
|
+ util::fail('请填写金额或选商品');
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$connection = Yii::$app->db;
|