Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tbcc-sdk-ts
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
qinhaitao
tbcc-sdk-ts
Commits
f3173bd8
Commit
f3173bd8
authored
Mar 12, 2021
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
🎸
真机调试
parent
23b1c8c7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
2 deletions
+5
-2
tb.js
lib/core/tb.js
+2
-0
tb.js.map
lib/core/tb.js.map
+1
-1
package.json
package.json
+1
-1
tb.ts
src/core/tb.ts
+1
-0
No files found.
lib/core/tb.js
View file @
f3173bd8
...
@@ -142,6 +142,8 @@ var checkShopFavoredStatus = function (sellerId) { return __awaiter(void 0, void
...
@@ -142,6 +142,8 @@ var checkShopFavoredStatus = function (sellerId) { return __awaiter(void 0, void
result
=
_a
.
sent
();
result
=
_a
.
sent
();
if
(
result
===
null
||
result
===
void
0
?
void
0
:
result
.
isFavor
)
if
(
result
===
null
||
result
===
void
0
?
void
0
:
result
.
isFavor
)
return
[
2
/*return*/
,
result
.
isFavor
];
return
[
2
/*return*/
,
result
.
isFavor
];
if
(
result
===
'checkShopFavoredStatus 仅支持真机调用,请在手机淘宝中运行'
)
return
[
2
/*return*/
,
true
];
return
[
2
/*return*/
,
result
];
return
[
2
/*return*/
,
result
];
}
}
});
});
...
...
lib/core/tb.js.map
View file @
f3173bd8
This diff is collapsed.
Click to expand it.
package.json
View file @
f3173bd8
{
{
"name"
:
"tbcc-sdk-ts"
,
"name"
:
"tbcc-sdk-ts"
,
"version"
:
"1.0.
1
"
,
"version"
:
"1.0.
2
"
,
"description"
:
""
,
"description"
:
""
,
"main"
:
"lib/index.js"
,
"main"
:
"lib/index.js"
,
"scripts"
:
{
"scripts"
:
{
...
...
src/core/tb.ts
View file @
f3173bd8
...
@@ -76,6 +76,7 @@ export const checkShopFavoredStatus = async (sellerId: number) => {
...
@@ -76,6 +76,7 @@ export const checkShopFavoredStatus = async (sellerId: number) => {
}
}
let
result
:
{
isFavor
?:
boolean
}
=
await
promisifyApiToTb
(
'checkShopFavoredStatus'
,{
id
:
+
sellerId
})
let
result
:
{
isFavor
?:
boolean
}
=
await
promisifyApiToTb
(
'checkShopFavoredStatus'
,{
id
:
+
sellerId
})
if
(
result
?.
isFavor
)
return
result
.
isFavor
if
(
result
?.
isFavor
)
return
result
.
isFavor
if
(
result
===
'checkShopFavoredStatus 仅支持真机调用,请在手机淘宝中运行'
)
return
true
return
result
return
result
};
};
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment