|
@@ -1364,6 +1364,34 @@ public function testa(Request $request){
|
|
|
return $this->json_return(200,'',json_decode($response,true));
|
|
|
}
|
|
|
|
|
|
+public function testdwyput(Request $request){
|
|
|
+ $data = $request->all();
|
|
|
+
|
|
|
+ $url = $data['url'];
|
|
|
+ $post = $data['post'];
|
|
|
+ $header = $data['header'];
|
|
|
+
|
|
|
+ $curl = curl_init();
|
|
|
+ $json = str_replace('"workflowSearchBean":{}','"workflowSearchBean":[]',json_encode($post));
|
|
|
+ $json = str_replace('"workflowSearchBean":[]','"workflowSearchBean":{}',json_encode($post));
|
|
|
+ file_put_contents('1.txt',$json);
|
|
|
+ curl_setopt_array($curl, array(
|
|
|
+ CURLOPT_URL => $url,
|
|
|
+ CURLOPT_RETURNTRANSFER => true,
|
|
|
+ CURLOPT_ENCODING => '',
|
|
|
+ CURLOPT_MAXREDIRS => 10,
|
|
|
+ CURLOPT_TIMEOUT => 0,
|
|
|
+ CURLOPT_FOLLOWLOCATION => true,
|
|
|
+ CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
|
|
+ CURLOPT_CUSTOMREQUEST => 'PUT',
|
|
|
+ CURLOPT_POSTFIELDS => $json,
|
|
|
+ CURLOPT_HTTPHEADER => $header,
|
|
|
+ ));
|
|
|
+ $response = curl_exec($curl);
|
|
|
+ curl_close($curl);
|
|
|
+ return $this->json_return(200,'',json_decode($response,true));
|
|
|
+ }
|
|
|
+
|
|
|
public function testaa1(Request $request){
|
|
|
$curl = curl_init();
|
|
|
|