王大坤 1 سال پیش
والد
کامیت
479482db1c

+ 8 - 0
.idea/.gitignore

xqd
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml

+ 13 - 0
.idea/hb.iml

xqd
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/server/app" isTestSource="false" packagePrefix="App\" />
+      <sourceFolder url="file://$MODULE_DIR$/server/database/factories" isTestSource="false" packagePrefix="Database\Factories\" />
+      <sourceFolder url="file://$MODULE_DIR$/server/database/seeders" isTestSource="false" packagePrefix="Database\Seeders\" />
+      <sourceFolder url="file://$MODULE_DIR$/server/tests" isTestSource="true" packagePrefix="Tests\" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 6 - 0
.idea/inspectionProfiles/Project_Default.xml

xqd
@@ -0,0 +1,6 @@
+<component name="InspectionProjectProfileManager">
+  <profile version="1.0">
+    <option name="myName" value="Project Default" />
+    <inspection_tool class="JSHint" enabled="true" level="ERROR" enabled_by_default="true" />
+  </profile>
+</component>

+ 16 - 0
.idea/jsLinters/jshint.xml

xqd
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="JSHintConfiguration" version="2.13.6" use-config-file="true" use-custom-config-file="true" custom-config-file-path="$PROJECT_DIR$/server/public/vendor/dcat-admin/dcat/plugins/bootstrap-duallistbox/.jshintrc">
+    <option bitwise="true" />
+    <option browser="true" />
+    <option curly="true" />
+    <option eqeqeq="true" />
+    <option forin="true" />
+    <option maxerr="50" />
+    <option noarg="true" />
+    <option noempty="true" />
+    <option nonew="true" />
+    <option strict="true" />
+    <option undef="true" />
+  </component>
+</project>

+ 8 - 0
.idea/modules.xml

xqd
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/hb.iml" filepath="$PROJECT_DIR$/.idea/hb.iml" />
+    </modules>
+  </component>
+</project>

+ 22 - 0
.idea/php.xml

xqd
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="MessDetectorOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PHPCSFixerOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PHPCodeSnifferOptionsConfiguration">
+    <option name="highlightLevel" value="WARNING" />
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PhpProjectSharedConfiguration" php_language_level="7.4">
+    <option name="suggestChangeDefaultLanguageLevel" value="false" />
+  </component>
+  <component name="PhpStanOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PsalmOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+</project>

+ 10 - 0
.idea/phpunit.xml

xqd
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="PHPUnit">
+    <option name="directories">
+      <list>
+        <option value="$PROJECT_DIR$/server/tests" />
+      </list>
+    </option>
+  </component>
+</project>

+ 6 - 0
.idea/vcs.xml

xqd
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="Git" />
+  </component>
+</project>

+ 1 - 1
mini/manifest.json

xqd
@@ -50,7 +50,7 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid" : "wxc614ff7099796009",
+        "appid" : "wxa7481605ea99a9a0",
         "setting" : {
             "urlCheck" : false,
             "minified" : true,

+ 1 - 1
mini/project.config.json

xqd
@@ -1,5 +1,5 @@
 {
-    "appid": "wx4d0105fabd19dfe2",
+    "appid": "wxa7481605ea99a9a0",
     "compileType": "miniprogram",
     "libVersion": "2.24.2",
     "packOptions": {

+ 1 - 1
mini/project.private.config.json

xqd
@@ -1,5 +1,5 @@
 {
-    "projectname": "user",
+    "projectname": "mini",
     "setting": {
         "compileHotReLoad": true
     },

+ 7 - 3
server/app/Http/Controllers/V1/Ai/AiController.php

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