@ywfe/fe-tools 1.2.1-beta.31 → 1.2.1-beta.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -8758,28 +8758,21 @@ function request(_a) {
8758
8758
 
8759
8759
  function userInputToJson(_a) {
8760
8760
  return __awaiter(this, arguments, void 0, function (_b) {
8761
- var res, result;
8761
+ var res;
8762
8762
  var input = _b.input;
8763
8763
  return __generator(this, function (_c) {
8764
8764
  switch (_c.label) {
8765
- case 0:
8766
- console.log("input", input);
8767
- return [4 /*yield*/, request({
8768
- input: {
8769
- url: "https://fc-typechat.ywwl.com/userInputToJson",
8770
- method: "GET",
8771
- params: input,
8772
- },
8773
- })];
8765
+ case 0: return [4 /*yield*/, request({
8766
+ input: {
8767
+ url: "https://fc-typechat.ywwl.com/userInputToJson",
8768
+ method: "GET",
8769
+ params: input,
8770
+ },
8771
+ })];
8774
8772
  case 1:
8775
8773
  res = _c.sent();
8776
- if (res.success) {
8777
- result = res.data;
8778
- return [2 /*return*/, result.success ? result.data : result];
8779
- }
8780
- else {
8781
- return [2 /*return*/, res.success ? res.data : res];
8782
- }
8774
+ console.log('userINput1', res);
8775
+ return [2 /*return*/, res];
8783
8776
  }
8784
8777
  });
8785
8778
  });