|
@@ -10,7 +10,7 @@ namespace App\Service;
|
|
|
class DwyService extends Service
|
|
|
{
|
|
|
private $url = 'https://tm.dwycloud.com';
|
|
|
- private $url1 = 'http://122.112.196.99:7774';
|
|
|
+ private $url1 = 'https://tm.dwycloud.com';
|
|
|
|
|
|
protected $num = 0;
|
|
|
|
|
@@ -239,6 +239,16 @@ class DwyService extends Service
|
|
|
// unset($l['brand_qr_code_list']);
|
|
|
// $l['qty'] = $l['fake_qty'];
|
|
|
// $l['brand_qr_code_list'] = $this->getValues( $code_key_data[$l['material_code']],$l['qty']);
|
|
|
+ $mma = $l['mat_material_a'] ?? [];
|
|
|
+ //"mat_material_a":{"mat_category_code_show":"免漆板1800香杉木","mat_category_code":"BC020202","cpdj_show":"尊贵型","cpdj":"cpdj01","grade_show":"E0","grade":"01"
|
|
|
+ if(isset($l['mat_material_a'])){
|
|
|
+ $l['mat_category_code_show'] = $l['mat_material_a']['mat_category_code_show'] ?? '';
|
|
|
+ $l['mat_category_code'] = $l['mat_material_a']['mat_category_code'] ?? '';
|
|
|
+ $l['cpdj'] = $l['mat_material_a']['cpdj'] ?? '';
|
|
|
+ $l['cpdj_show'] = $l['mat_material_a']['cpdj_show'] ?? '';
|
|
|
+ $l['grade_show'] = $l['mat_material_a']['grade_show'] ?? '';
|
|
|
+ $l['grade'] = $l['mat_material_a']['grade'] ?? '';
|
|
|
+ }
|
|
|
$lind_bind_key_list[$l['order_item_id']] = [
|
|
|
'product_code' => $l['product_code'],
|
|
|
'product_code_show' => $l['product_code_show'],
|
|
@@ -246,11 +256,16 @@ class DwyService extends Service
|
|
|
'color' => $l['color']??'',
|
|
|
'process_title_two' => $l['process_title_two']??'',
|
|
|
'color_two' => $l['color_two']??'',
|
|
|
- 'mat_material_a' => $l['mat_material_a']
|
|
|
+ 'mat_material_a' => $l['mat_material_a']??'',
|
|
|
+ 'mat_category_code_show' => $mma['mat_category_code_show'] ?? '',
|
|
|
+ 'mat_category_code' => $mma['mat_category_code'] ?? '',
|
|
|
+ 'cpdj' => $mma['cpdj'] ?? '',
|
|
|
+ 'cpdj_show' => $mma['cpdj_show'] ?? '',
|
|
|
+ 'grade_show' => $mma['grade_show'] ?? '',
|
|
|
+ 'grade' => $mma['grade'] ?? '',
|
|
|
];
|
|
|
unset($l['fake_qty']);
|
|
|
}
|
|
|
-
|
|
|
$lead_out = $old_data['lead_out']['brand_out_stock_list'];
|
|
|
foreach ($lead_out as &$ll){
|
|
|
foreach ($ll['brand_out_stock_dtl'] as &$lll){
|
|
@@ -268,6 +283,12 @@ class DwyService extends Service
|
|
|
$lll['color'] = $lind_bind_key_list[$lll['bus_no']]['color'] ?? '';
|
|
|
$lll['process_title_two'] = $lind_bind_key_list[$lll['bus_no']]['process_title_two'] ?? '';
|
|
|
$lll['color_two'] = $lind_bind_key_list[$lll['bus_no']]['color_two'] ?? '';
|
|
|
+ $lll['mat_category_code_show'] = $lind_bind_key_list[$lll['bus_no']]['mat_category_code_show'] ?? '';
|
|
|
+ $lll['mat_category_code'] = $lind_bind_key_list[$lll['bus_no']]['mat_category_code'] ?? '';
|
|
|
+ $lll['cpdj'] = $lind_bind_key_list[$lll['bus_no']]['cpdj'] ?? '';
|
|
|
+ $lll['cpdj_show'] = $lind_bind_key_list[$lll['bus_no']]['cpdj_show'] ?? '';
|
|
|
+ $lll['grade_show'] = $lind_bind_key_list[$lll['bus_no']]['grade_show'] ?? '';
|
|
|
+ $lll['grade'] = $lind_bind_key_list[$lll['bus_no']]['grade'] ?? '';
|
|
|
}
|
|
|
|
|
|
}
|