|
...
|
...
|
@@ -125,15 +125,18 @@ class Ticket5UploadDataController extends BaseController |
|
|
|
//todo::更新分类数据
|
|
|
|
$action1 = $project5CateModel->getCateTypeAction($this->param['type']);
|
|
|
|
$url1 = $projectInfo['website'].'wp-admin/admin-ajax.php?action='.$action1;
|
|
|
|
$data = http_get($url1);
|
|
|
|
if($data && $data['status'] == 200){
|
|
|
|
$resultData = $data['data'];
|
|
|
|
$response = Http::withHeaders([])->asForm()->get($url1);
|
|
|
|
if ($response->successful()) {
|
|
|
|
$result = $response->json();
|
|
|
|
if($result && $result['status'] == 200){
|
|
|
|
$resultData = $result['data'];
|
|
|
|
$saveData = [
|
|
|
|
'text'=>json_encode($data['data'],JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
|
|
|
|
'text'=>json_encode($result['data'],JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
|
|
|
|
];
|
|
|
|
$project5CateModel->edit($saveData,['project_id' => $projectInfo['post_id'],'type'=>$this->param['type']]);
|
|
|
|
$this->response('success', Code::SUCCESS,$resultData);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|