@pisell/private-materials 3.0.64 → 3.0.66

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.
@@ -32,7 +32,7 @@ import { getProductExtend } from "./utils";
32
32
  import { formatProductListByCategory, getProductTotalPrice, request } from "../../../utils";
33
33
  import { locales, getUniqueId } from "@pisell/utils";
34
34
  import { useUpdateEffect } from "ahooks";
35
- var shopList = [2886, 4422, 5538, 6930, 6814, 6813, 6812, 6087, 6303];
35
+ var shopList = [2886, 4422, 5538, 6930, 6814, 6813, 6812, 6087, 6303, 6080];
36
36
  var Info = function Info() {
37
37
  var _state$service3, _state$service4, _state$service4$cache;
38
38
  var _useState = useState(""),
@@ -181,8 +181,8 @@ export var checkCacheItemResource = function checkCacheItemResource(_ref5) {
181
181
  }
182
182
  } else {
183
183
  if (cacheItem.new) {
184
- if (resources.length === 2) {
185
- resourceId = resources[1].form_record_id;
184
+ if (resources.length <= 2) {
185
+ resourceId = resources[resources.length - 1].form_record_id;
186
186
  }
187
187
  if (resources.length > 2) {
188
188
  var usableList = resources.filter(function (d) {
@@ -47,7 +47,7 @@ var import_utils2 = require("./utils");
47
47
  var import_utils3 = require("../../../utils");
48
48
  var import_utils4 = require("@pisell/utils");
49
49
  var import_ahooks = require("ahooks");
50
- var shopList = [2886, 4422, 5538, 6930, 6814, 6813, 6812, 6087, 6303];
50
+ var shopList = [2886, 4422, 5538, 6930, 6814, 6813, 6812, 6087, 6303, 6080];
51
51
  var Info = () => {
52
52
  var _a, _b, _c;
53
53
  const [search, setSearch] = (0, import_react.useState)("");
@@ -163,8 +163,8 @@ var checkCacheItemResource = ({ cacheItem, resources }) => {
163
163
  }
164
164
  } else {
165
165
  if (cacheItem.new) {
166
- if (resources.length === 2) {
167
- resourceId = resources[1].form_record_id;
166
+ if (resources.length <= 2) {
167
+ resourceId = resources[resources.length - 1].form_record_id;
168
168
  }
169
169
  if (resources.length > 2) {
170
170
  const usableList = resources.filter(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.64",
3
+ "version": "3.0.66",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",