diff --git a/app/adminapi/logic/ShopContractLogic.php b/app/adminapi/logic/ShopContractLogic.php index 75f204287..63f53c15b 100644 --- a/app/adminapi/logic/ShopContractLogic.php +++ b/app/adminapi/logic/ShopContractLogic.php @@ -119,6 +119,10 @@ class ShopContractLogic extends BaseLogic province,city,area,street,village,brigade,address,province province_name,city city_name,area area_name,street street_name,village village_name,brigade brigade_name,master_phone,master_name, qualification']; $shopMerchant = ShopMerchant::where(['id' => $data['party_b']])->field($field)->find()->toArray(); + $shopMerchant['qualification'] = json_decode($shopMerchant['qualification'], true); + if($shopMerchant['qualification'] && isset($shopMerchant['qualification']['other_qualifications'])){ + $shopMerchant['qualification']['other_qualifications']=json_decode($shopMerchant['qualification']['other_qualifications'],true); + } return $shopMerchant; }) ->withAttr('party_a_info', function ($value, $data) { @@ -126,7 +130,9 @@ class ShopContractLogic extends BaseLogic province,city,area,street,village,brigade,address,province province_name,city city_name,area area_name,street street_name,village village_name,brigade brigade_name,master_phone,master_name, qualification']; $shopMerchant = ShopMerchant::where(['id' => $data['party_a']])->field($field)->find()->toArray(); - + if($shopMerchant['qualification'] && isset($shopMerchant['qualification']['other_qualifications'])){ + $shopMerchant['qualification']['other_qualifications']=json_decode($shopMerchant['qualification']['other_qualifications'],true); + } return $shopMerchant; }) ->withAttr('status_name', function ($value, $data) {