Commit f3173bd8 authored by qinhaitao's avatar qinhaitao

feat: 🎸 真机调试

parent 23b1c8c7
...@@ -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];
} }
}); });
......
This diff is collapsed.
{ {
"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": {
......
...@@ -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
}; };
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment