|
@@ -69,8 +69,8 @@ class Solution extends Base
|
|
|
echo getDateFull()."====预下单\n";
|
|
echo getDateFull()."====预下单\n";
|
|
|
print_r($msgData);
|
|
print_r($msgData);
|
|
|
if (!isset($msgData['item_order_info_list'][0]['goods_id'])) return json(['err_no' => 0,"err_tips" => "success"]);
|
|
if (!isset($msgData['item_order_info_list'][0]['goods_id'])) return json(['err_no' => 0,"err_tips" => "success"]);
|
|
|
- if (empty($msgData['cp_extra'])) return json(['err_no' => 0,"err_tips" => "success"]);
|
|
|
|
|
- $cp_extra = json_decode($msgData['cp_extra'],true);
|
|
|
|
|
|
|
+// if (empty($msgData['cp_extra'])) return json(['err_no' => 0,"err_tips" => "success"]);
|
|
|
|
|
+ $cp_extra = empty($msgData['cp_extra']) ? [] : json_decode($msgData['cp_extra'],true);
|
|
|
$skuGoods = [];
|
|
$skuGoods = [];
|
|
|
if ($cp_extra['product_id'] <> $cp_extra['sku_id']) { // 多规格下单
|
|
if ($cp_extra['product_id'] <> $cp_extra['sku_id']) { // 多规格下单
|
|
|
$skuGoods = (new SaasGoodsSku)->where(['product_id' => $cp_extra['product_id'],'sku_id' => $cp_extra['sku_id']])->findOrEmpty();
|
|
$skuGoods = (new SaasGoodsSku)->where(['product_id' => $cp_extra['product_id'],'sku_id' => $cp_extra['sku_id']])->findOrEmpty();
|