|
@ -18,12 +18,14 @@
|
|
|
|
|
|
|
|
|
userAgent = localStorage.getItem(agentName)
|
|
|
//hard code userAgent for test
|
|
|
|
|
|
//hard code userAgent for test start
|
|
|
//全科
|
|
|
// userAgent = {"id":4798,"uid":"hxmD201703150222","token":"a69244e7c000c2db07f6cb5c2e44e8f4","imei":"A8221352625AFE32","platform":4}
|
|
|
// userAgent = {"id":4800,"uid":"zbqD201703150222","imei":"864394010176834","token":"9b23e4ec0bcd3b9fa72a52f91544a4e9","platform":4,"hospital":"3502050100"}
|
|
|
//健管
|
|
|
// userAgent = {"id":4821,"uid":"zbqD201703150228","imei":"864394010176834","token":"73f5ace5c7d4cdb811f743902fd705d9","platform":2,"hospital":"3502050100"};
|
|
|
userAgent = JSON.stringify({"id":4798,"uid":"hxmD201703150222","token":"0af1d911281cfec43bcf7da6e18f227b","imei":"40C1416D42D02EA9","platform":4});
|
|
|
// userAgent = {"id":4821,"uid":"zbqD201703150228","imei":"864394010176834","token":"73f5ace5c7d4cdb811f743902fd705d9","platform":4,"hospital":"3502050100"};
|
|
|
// userAgent = JSON.stringify(userAgent);
|
|
|
//hard code userAgent for test end
|
|
|
|
|
|
if(userAgent) {
|
|
|
try{
|
|
@ -133,7 +135,10 @@
|
|
|
}
|
|
|
if(tip) {
|
|
|
toastr && toastr.warning(tip)
|
|
|
// location.replace(loginUrl+'?redirect_url='+encodeURIComponent(location.href))
|
|
|
|
|
|
setTimeout(function(){
|
|
|
location.replace(loginUrl+'?redirect_url='+encodeURIComponent(location.href))
|
|
|
}, 1000);
|
|
|
}
|
|
|
}
|
|
|
|