koishi-plugin-starfx-bot 0.1.1 → 0.1.2

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/lib/index.js CHANGED
@@ -79,6 +79,7 @@ async function getImageSrc(session, param) {
79
79
  const { gid } = session;
80
80
  let userid = "";
81
81
  let imageSrc = "";
82
+ console.log(param);
82
83
  if (!param) {
83
84
  console.log("no");
84
85
  userid = session.userId;
@@ -93,9 +94,9 @@ async function getImageSrc(session, param) {
93
94
  const index = param.indexOf("<");
94
95
  param = param.slice(index);
95
96
  if (param?.length) {
96
- return "";
97
- } else {
98
97
  return getImageSrc(session, param);
98
+ } else {
99
+ return "";
99
100
  }
100
101
  }
101
102
  if (userid) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "contributors": [
5
5
  "StarFreedomX <starfreedomx@outlook.com>"
6
6
  ],
7
- "version": "0.1.1",
7
+ "version": "0.1.2",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
10
10
  "files": [
package/assets/lock.png DELETED
Binary file
package/assets/sold.png DELETED
Binary file