commit c007ea7031f7d160fcf7f4e5693bbbb00e7df137 Author: Kidultff Date: Sun Nov 5 13:07:05 2017 +0800 自行修改文件上传位置 diff --git a/api.php b/api.php new file mode 100644 index 0000000..ac6a49f --- /dev/null +++ b/api.php @@ -0,0 +1,101 @@ + $mtime, + 'CreateTime' => time(), + 'Content[imageUrl]' => $msimg_url #上传到微软服务器的图片 + ); +$ms_ret = curl_request($ice_yanzhi_api, $data, $cookie, 0); +$score_arr = (array)json_decode($ms_ret); +$content = (array)($score_arr["content"]); +$text = $content["text"]; +$img = $content["imageUrl"]; +$return = ["msg"=>$text, "img"=>$img]; +echo json_encode($return);