@@ -2040,9 +2040,7 @@ function openLoginDig(type, redirectUrl) {
try {
var injectLogic = logic
logic = function (data, num) {
- if (type) {
- window.needToWork = true
- }
+ window.needToWork = Boolean(type)
if (data.result === 'ok') {
//判断是否需要设置cookie
if(data.cValue){