作者 lyh

gx

@@ -37,7 +37,7 @@ class TestController extends BaseController @@ -37,7 +37,7 @@ class TestController extends BaseController
37 */ 37 */
38 public function ceshi(){ 38 public function ceshi(){
39 $aiBlogService = new AiBlogService(); 39 $aiBlogService = new AiBlogService();
40 - $result = $aiBlogService->createProject('V6.0 - 演示项目','en','生产案例制作'); 40 + $result = $aiBlogService->createProject('v6-演示项目','en','生产案例制作');
41 $this->response('success',Code::SUCCESS,$result); 41 $this->response('success',Code::SUCCESS,$result);
42 } 42 }
43 } 43 }
@@ -35,7 +35,7 @@ class AiBlogService @@ -35,7 +35,7 @@ class AiBlogService
35 ]; 35 ];
36 $this->sign = $this->generateSign($param,$this->key); 36 $this->sign = $this->generateSign($param,$this->key);
37 $param['sign'] = $this->sign; 37 $param['sign'] = $this->sign;
38 - $result = http_post($request_url,$param); 38 + $result = http_post($request_url,json_encode($param,true));
39 return $result; 39 return $result;
40 } 40 }
41 41