|
@@ -398,15 +398,22 @@ class IndexController extends BaseAdminController
|
|
|
$service_data['SupplyDemandInfo'] = json_encode($service_info['data']['SupplyDemandInfo']);
|
|
$service_data['SupplyDemandInfo'] = json_encode($service_info['data']['SupplyDemandInfo']);
|
|
|
$service_data['supply_cate_name'] = json_encode($service_info['data']['supply_cate_name']);
|
|
$service_data['supply_cate_name'] = json_encode($service_info['data']['supply_cate_name']);
|
|
|
$service_data['supply_cate_value'] = json_encode($service_info['data']['supply_cate_value']);
|
|
$service_data['supply_cate_value'] = json_encode($service_info['data']['supply_cate_value']);
|
|
|
-
|
|
|
|
|
|
|
+ $supply_first_cate_list = $service_info['data']['supply_first_cate_name'];
|
|
|
$list = $service_info['data']['SupplyDemandInfo'];
|
|
$list = $service_info['data']['SupplyDemandInfo'];
|
|
|
$con = ['co01','co03','co02','co05','co04'];
|
|
$con = ['co01','co03','co02','co05','co04'];
|
|
|
foreach($list as &$lv){
|
|
foreach($list as &$lv){
|
|
|
$randomKey = array_rand($con);
|
|
$randomKey = array_rand($con);
|
|
|
$lv['co'] = $con[$randomKey];
|
|
$lv['co'] = $con[$randomKey];
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
$service_data['SupplyDemandList'] = $list ;
|
|
$service_data['SupplyDemandList'] = $list ;
|
|
|
|
|
|
|
|
|
|
+ $cons = ['co01','co03','co02','co05','co04'];
|
|
|
|
|
+ foreach($supply_first_cate_list as &$sfcl){
|
|
|
|
|
+ $randomKeys = array_rand($cons);
|
|
|
|
|
+ $sfcl['co'] = $cons[$randomKeys];
|
|
|
|
|
+ }
|
|
|
|
|
+ $service_data['supply_first_cate_list'] = $supply_first_cate_list ;
|
|
|
$data['service_info'] = $service_data;
|
|
$data['service_info'] = $service_data;
|
|
|
/* 社会化服务 end*/
|
|
/* 社会化服务 end*/
|
|
|
|
|
|