|
@@ -1,3 +1,25 @@
|
|
|
+function getUserId() {
|
|
|
+ var use = getCookie("doibyUser");
|
|
|
+ if (use == null) {
|
|
|
+ location.href = "sign-in1.html?from=entrance-1&msg=nologin";
|
|
|
+ if (userId == null) {
|
|
|
+ userId = use;
|
|
|
+ } else {
|
|
|
+ // 指定新的userId
|
|
|
+ //userId = use;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(userId == null || userId === undefined){
|
|
|
+ location.href = "sign-in1.html?from=entrance-3&msg=from-cookie-userId-repeated-notdefined";
|
|
|
+ }else{
|
|
|
+ if(parseInt(userId) <= 0){
|
|
|
+ location.href = "sign-in1.html?from=entrance-4&msg=from-cookie-parseOut0";
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+getUserId();
|
|
|
+
|
|
|
function load_table_red_rank() {
|
|
|
get_data("fcBiWorkerDaily/get?type=1&limit=3", on_red_rank_success);
|
|
|
}
|