|
@@ -48,6 +48,7 @@ class AiController extends Controller
|
|
'age' => $request->post('age', ''),
|
|
'age' => $request->post('age', ''),
|
|
'star' => $request->post('star', ''),
|
|
'star' => $request->post('star', ''),
|
|
'level' => $request->post('level', ''),
|
|
'level' => $request->post('level', ''),
|
|
|
|
+ 'is_piny' => $request->post('is_piny', 1),
|
|
]);
|
|
]);
|
|
if (!$role) {
|
|
if (!$role) {
|
|
return Response::fail('提交失败,请稍后再试!');
|
|
return Response::fail('提交失败,请稍后再试!');
|
|
@@ -506,7 +507,8 @@ class AiController extends Controller
|
|
]);
|
|
]);
|
|
$res = curl_exec($ch);
|
|
$res = curl_exec($ch);
|
|
curl_close($ch);
|
|
curl_close($ch);
|
|
-
|
|
|
|
|
|
+ Log::warning('请求头:' .$postData);
|
|
|
|
+ Log::warning('请求返回值:' .$res);
|
|
return json_decode(trim($res), true);
|
|
return json_decode(trim($res), true);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -549,13 +551,15 @@ class AiController extends Controller
|
|
$string = $string . $img;
|
|
$string = $string . $img;
|
|
}
|
|
}
|
|
if (in_array($key + 1, $arr)) {
|
|
if (in_array($key + 1, $arr)) {
|
|
- $string = $string . "<span><sup>{$value}</sup>{$splitCharacters[$key]}</span><br style='clear: both'><br style='clear: both'>";
|
|
|
|
|
|
+// $string = $string . "<span><sup>{$value}</sup>{$splitCharacters[$key]}</span><br style='clear: both'><br style='clear: both'>";
|
|
|
|
+ $string = $string . "<span>{$splitCharacters[$key]}</span><br style='clear: both'><br style='clear: both'>";
|
|
} else {
|
|
} else {
|
|
$style = '';
|
|
$style = '';
|
|
// if (in_array($key, $arr) || 0 == $key) {
|
|
// if (in_array($key, $arr) || 0 == $key) {
|
|
// $style = 'style="margin-left: 5rem"';
|
|
// $style = 'style="margin-left: 5rem"';
|
|
// }
|
|
// }
|
|
- $string = $string . '<span ' . $style . "><sup>{$value}</sup>{$splitCharacters[$key]}</span>";
|
|
|
|
|
|
+// $string = $string . '<span ' . $style . "><sup>{$value}</sup>{$splitCharacters[$key]}</span>";
|
|
|
|
+ $string = $string . '<span ' . $style . ">{$splitCharacters[$key]}</span>";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|