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