wugg 2 年 前
コミット
0898285439
1 ファイル変更5 行追加2 行削除
  1. 5 2
      app/abutment/controller/Order.php

+ 5 - 2
app/abutment/controller/Order.php

@@ -957,9 +957,12 @@ class Order extends HomeBaseController
                 $specinfo = isset($temp['specinfo']) ? json_decode($temp['specinfo'], true) : [];
 
                 $speclist = [];
-                foreach ($specinfo as $val) {
-                    $speclist[] = $val['spec_name'] . ':' . $val['spec_value_name'];
+                if(!empty($specinfo)){
+                	   foreach ($specinfo as $val) {
+                        $speclist[] = $val['spec_name'] . ':' . $val['spec_value_name'];
+                    }
                 }
+
                 $value['税率'] = $temp['tax'] . '%';
             } else {
                 $good_unit = Db::name('good_basic')