tt-minigame-ide-cli 1.0.2 → 1.0.3-beta.0
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/util/request.js +1 -1
- package/package.json +1 -1
package/lib/util/request.js
CHANGED
@@ -391,6 +391,6 @@ exports.checkUploadVersion = async function (appId, version) {
|
|
391
391
|
|
392
392
|
const getProjectReleaseVersion = async function (appId) {
|
393
393
|
const res = await axios.get(`/api/apps/v3/meta?appid=${appId}&aid=13&version=current&ttcode=OVCNW/U0UREwv0sHdY9Rm16vBgGrCQIBOWurUCmJ1H6d/2XHLKeOYTYfEJIEeC0AOCwBZAR2j34C4tFN7Nqfq9tHVEpM4OuJM2b8qz0INtUs1qLhKFOtnGa9/Ey0WW86GGocJk074eP72MMhzNmePzaTQzXwn/eqEq4GHwyF2Tg=&t=${new Date().getTime()}`)
|
394
|
-
return res.data.data.version;
|
394
|
+
return res.data.data.version || '0.0.0';
|
395
395
|
}
|
396
396
|
exports.getProjectReleaseVersion = getProjectReleaseVersion;
|