|
@@ -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')
|