yc-ui2 0.1.5-beta1 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/yc-ui2.common.js
CHANGED
@@ -44259,12 +44259,22 @@ function findServiceFeeAi() {
|
|
44259
44259
|
findDataByProblem({
|
44260
44260
|
problem: msg.replace(/\n/g, ""),
|
44261
44261
|
aiServiceId: 1
|
44262
|
-
}).then(
|
44263
|
-
|
44264
|
-
|
44265
|
-
|
44266
|
-
|
44267
|
-
|
44262
|
+
}).then(({
|
44263
|
+
data
|
44264
|
+
}) => {
|
44265
|
+
this.add((() => {
|
44266
|
+
if (data) {
|
44267
|
+
return data.length > 1 ? data.reduce((prev, curr) => [...prev, curr.problem], []) : data[0].answer || "您好";
|
44268
|
+
} else {
|
44269
|
+
return "您好";
|
44270
|
+
}
|
44271
|
+
})(), 'admin', null, (() => {
|
44272
|
+
if (data && data.length == 1) {
|
44273
|
+
return data[0].based;
|
44274
|
+
} else {
|
44275
|
+
return "";
|
44276
|
+
}
|
44277
|
+
})());
|
44268
44278
|
});
|
44269
44279
|
},
|
44270
44280
|
add(msg, id = "personal", fun, based = "") {
|