
export const user = JSON.parse(localStorage.getItem('userInfo'))

// {
//   "user_id": "248627",
//   "user_name": "15995403324",
//   "email": "15995403324@bozedu.net",
//   "lastlogintime": "2022-11-25 11:50:32",
//   "user_role_id": "77", "user_role_name": "家长",
//   "user_avatar": {
//     "big": "https://oss.bozedu.net/template/default/static/img/avatar_teacher_big.png",
//     "middle": "https://oss.bozedu.net/template/default/static/img/avatar_teacher_big.png",
//     "small": "https://oss.bozedu.net/template/default/static/img/avatar_teacher_big.png"
//   },
//   "user_no": { "no_title": "学号", "no": "" },
//   "token": "504a7P0DxKy6uu9zUuZ0AqkCeL72LWWItzaFuhSp98yu95kzgf_aqsTd7y6V1MuuCO9KrwVAsSimjGm_bXN9oz9ScvTi0",
//   "user_realname": "李昊家长", "user_phone": "15995403324", "idcard": "", "gender": "0", "gender_char": "保密",
//   "qq": "", "nationality": "", "address": "", "education": "", "area_info": {
//     "area_id1": "10", "area_id2": "166",
//     "area_id3": "2069", "area_id4": "0", "area_id1_char": "江苏省", "area_id2_char": "苏州市", "area_id3_char": "常熟市",
//     "area_id4_char": "", "area_code1": "320000000000", "area_code2": "320500000000", "area_code3": "320581000000", "area_code4": "",
//     "area_code_dist": "320581000000"
//   }, "sm_info": {
//     "sm_id": "0", "sm_name": "", "area_id1": "0", "area_id2": "0", "area_id3": "0",
//     "area_id4": "0", "major_mode": "0"
//   }, "first_cm_id": "", "first_cm_name": "", "cm_info": [], "related_desc": "全部",
//   "bind3rd": { "wechat": "0" },
//   "org_info": {
//     "org": "苏州博智", "telephone": "", "telephone_short": "", "is_org": "0", "up_org": "0",
//     "up_org_info": { "sm_id": "", "sm_name": "" }
//   }, "pan": { "unit": "G", "size": "500", "used": "0.00", "desc": "0.00%" },
//   "safe_tips": ["您的密码安全程度较低,请立即修改", "必须包含数字、字母大小写或者特殊字符，长度8位及以上"],
//   "update_center": "https://openapi.bozedu.net",
//   "base_url": {
//     "aboutus": "https://openapi.bozedu.net/aboutus",
//     "file": "https://openapi.bozedu.net", "vpn": "http://openapi.bozedu.net",
//     "uc": "https://uc.bozedu.net", "yzy": "https://yzy.bozedu.net", "kzkt": "https://kzkt.bozedu.net",
//     "openapi": "https://openapi.bozedu.net", "site_zhkt_api": "http://120.26.51.195:8008", "yxxt": "https://yxxt.bozedu.net"
//   },
//   "role_system": [{ "code": "kzkt", "name": "空中课堂", "icon": "", "cate": "1", "type": "1", "url": "https://kzkt.bozedu.net" },
//   { "code": "yzy", "name": "作业系统", "icon": "", "cate": "1", "type": "1", "url": "https://yzy.bozedu.net" },
//   { "code": "zhkt", "name": "智慧课堂", "icon": "", "cate": "1", "type": "2", "url": "http://120.26.51.195:8008/desadmin.php" }],
//   "user_score": "668", "product": ["课堂", "直播", "作业"], "app_url": {
//     "A119": "https://qqyxt.m.bozedu.net/page/course/tskc_more.html",
//     "A120": "https://qqyxt.m.bozedu.net/page/my/msg_hybrid.html?id=31", "A121": "https://qqyxt.m.bozedu.net/page/parent/msg.html",
//     "A122": "https://qqyxt.m.bozedu.net/page/my/integral_hybrid.html",
//     "A123": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html", "A124": "https://qqyxt.m.bozedu.net/page/my/footPrint.html",
//     "A125": "https://qqyxt.m.bozedu.net/page/my/intergralMall.html",
//     "A126": "https://openapi.bozedu.net/component/ebook_main/public?api=html",
//     "A127": "https://qqyxt.m.bozedu.net/Course_registration/transfer.html?v=1",
//     "A128": "https://qqyxt.m.bozedu.net/Course_registration/transfer.html?type=course_after_service",
//     "A129": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=1", "A130": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=2",
//     "A131": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=3", "A132": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=4"
//   },
//   "cpm_access_level": "6",
//   "pwd": "lihao123"
// }
//  {
//   "user_id": "347479",
//   "user_name": "张虹",
//   "email": "",
//   "lastlogintime": "2022-09-27 15:20:07",
//   "user_role_id": "72",
//   "user_role_name": "学校管理员",
//   "user_avatar":
//   {
//     "big": "https://openapi.bozedu.net/template/default/static/img/avatar_teacher_big.png", "middle": "https://openapi.bozedu.net/template/default/static/img/avatar_teacher_middle.png", "small": "https://openapi.bozedu.net/template/default/static/img/avatar_teacher_small.png"
//   },
//   "user_no":
//   {
//     "no_title": "学号", "no": ""
//   },
//   "token": "538ahv7FCKsidI7hjXIA_b8e2p_ajiGJu7urMZMs7LZQpkTba3HpaNMdboxOotEvKWgUvhhs1iMMqHNl3DCa0fRbg6zDw",
//   "user_realname": "张虹",
//   "user_phone": "",
//   "idcard": "",
//   "gender": "2",
//   "gender_char": "女",
//   "qq": "",
//   "nationality": "",
//   "address": "",
//   "education": "",
//   "area_info":
//   {
//     "area_id1": "5", "area_id2": "95", "area_id3": "1418", "area_id4": "0", "area_id1_char": "内蒙古自治区", "area_id2_char": "呼和浩特市", "area_id3_char": "回民区", "area_id4_char": "", "area_code1": "150000000000", "area_code2": "150100000000", "area_code3": "150103000000", "area_code4": "", "area_code_dist": "150103000000"
//   },
//   "sm_info":
//   {
//     "sm_id": "666", "adminid": "303115", "sm_name": "呼和浩特回民区南马路小学", "is_org": "0", "up_org": "0", "area_id1": "5", "area_id2": "95", "area_id3": "1418", "area_id4": "0", "major_mode": "0", "powers": { "vip_shiti": "0", "vip_sucai": "0", "vip_aicheck": "0" }
//   },
//   "cm_info":
//     [],
//   "first_cm_id": "",
//   "first_cm_name": "",
//   "renke_grade": [],
//   "renke_subject": [],
//   "related_desc": "暂无任课",
//   "bind3rd":
//     { "wechat": "0" },
//   "org_info":
//   {
//     "org": "呼和浩特回民区南马路小学", "telephone": "", "telephone_short": "", "is_org": "0", "up_org": "0", "up_org_info": { "sm_id": "", "sm_name": "" }
//   },
//   "pan":
//   {
//     "unit": "G", "size": "500", "used": "0.00", "desc": "0.00%"
//   },
//   "safe_tips": [],
//   "update_center": "https://openapi.bozedu.net",
//   "base_url":
//   {
//     "aboutus": "https://openapi.bozedu.net/aboutus", "file": "https://openapi.bozedu.net", "vpn": "http://openapi.bozedu.net", "uc": "https://uc.bozedu.net", "yzy": "https://yzy.bozedu.net", "kzkt": "https://kzkt.bozedu.net", "openapi": "https://openapi.bozedu.net", "site_zhkt_api": "http://120.26.51.195:8008", "yxxt": "https://yxxt.bozedu.net"
//   },
//   "role_system":
//     [
//       {
//         "code": "kzkt", "name": "空中课堂", "icon": "", "cate": "1", "type": "1", "url": "https://kzkt.bozedu.net"
//       },
//       { "code": "yzy", "name": "作业系统", "icon": "", "cate": "1", "type": "1", "url": "https://yzy.bozedu.net" },
//       { "code": "zhkt", "name": "智慧课堂", "icon": "", "cate": "1", "type": "2", "url": "http://120.26.51.195:8008/desadmin.php" }
//     ],
//   "user_score": "50",
//   "product": ["课堂", "直播", "作业"],
//   "app_url":
//     { "A119": "https://qqyxt.m.bozedu.net/page/course/tskc_more.html", "A120": "https://qqyxt.m.bozedu.net/page/my/msg_hybrid.html?id=31", "A121": "https://qqyxt.m.bozedu.net/page/parent/msg.html", "A122": "https://qqyxt.m.bozedu.net/page/my/integral_hybrid.html", "A123": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html", "A124": "https://qqyxt.m.bozedu.net/page/my/footPrint.html", "A125": "https://qqyxt.m.bozedu.net/page/my/intergralMall.html", "A126": "https://openapi.bozedu.net/component/ebook_main/public?api=html", "A127": "https://qqyxt.m.bozedu.net/Course_registration/transfer.html?v=1", "A128": "https://qqyxt.m.bozedu.net/Course_registration/transfer.html?type=course_after_service", "A129": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=1", "A130": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=2", "A131": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=3", "A132": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=4" },
//   "cpm_access_level": "5",
//   "pwd": "zzz123456"
// }

//   {
//    "user_id": "347914", "user_name": "nxbzr12", "email": "nxbzr12@email.com", "lastlogintime": "2022-11-16 13:46:09", "user_role_id": "75", "user_role_name": "学校教师", "user_avatar": { "big": "https://openapi.bozedu.net/template/default/static/img/avatar_teacher_big.png", "middle": "https://openapi.bozedu.net/template/default/static/img/avatar_teacher_middle.png", "small": "https://openapi.bozedu.net/template/default/static/img/avatar_teacher_small.png" }, "user_no": { "no_title": "工号", "no": "" },
//   "token": "f23dc2oHuiVDRq1slSYdPnZNXSFPhkqakX6Sf_afw5u4o1pHkoXx_aHhKSxmH4Y4_b7fAXfQIYJCEthiHA5TeRCgttRizY",
//    "user_realname": "肖艳萍", "user_phone": "", "idcard": "", "gender": "0", "gender_char": "保密", "qq": "", "nationality": "", "address": "", "education": "", "area_info": { "area_id1": "5", "area_id2": "95", "area_id3": "1418", "area_id4": "0", "area_id1_char": "内蒙古自治区", "area_id2_char": "呼和浩特市", "area_id3_char": "回民区", "area_id4_char": "", "area_code1": "150000000000", "area_code2": "150100000000", "area_code3": "150103000000", "area_code4": "", "area_code_dist": "150103000000" }, "sm_info": { "sm_id": "666", "adminid": "303115", "sm_name": "呼和浩特回民区南马路小学", "is_org": "0", "up_org": "0", "area_id1": "5", "area_id2": "95", "area_id3": "1418", "area_id4": "0", "major_mode": "0", "powers": { "vip_shiti": "0", "vip_sucai": "0", "vip_aicheck": "0" } }, "cm_info": [{ "cm_id": "13570", "sm_id": "666", "pre": "", "cm_name": "一年级(2)班", "grade": "1", "gradeClass": "2", "major_id": "", "creatorid": "347914", "is_manage": 1, "major_name": "" }], "first_cm_id": "13570", "first_cm_name": "一年级(2)班", "renke_grade": [], "renke_subject": [], "related_desc": "暂无任课", "bind3rd": { "wechat": "0" }, "org_info": { "org": "呼和浩特回民区南马路小学", "telephone": "", "telephone_short": "", "is_org": "0", "up_org": "0", "up_org_info": { "sm_id": "", "sm_name": "" } }, "pan": { "unit": "G", "size": "0", "used": "0.00", "desc": "无限制" }, "safe_tips": ["您的密码安全程度较低,请立即修改", "必须包含数字、字母大小写或者特殊字符，长度8位及以上"], "update_center": "https://openapi.bozedu.net", "base_url": { "aboutus": "https://openapi.bozedu.net/aboutus", "file": "https://openapi.bozedu.net", "vpn": "http://openapi.bozedu.net", "uc": "https://uc.bozedu.net", "yzy": "https://yzy.bozedu.net", "kzkt": "https://kzkt.bozedu.net", "openapi": "https://openapi.bozedu.net", "site_zhkt_api": "http://120.26.51.195:8008", "yxxt": "https://yxxt.bozedu.net" }, "role_system": [{ "code": "kzkt", "name": "空中课堂", "icon": "", "cate": "1", "type": "1", "url": "https://kzkt.bozedu.net" }, { "code": "yzy", "name": "作业系统", "icon": "", "cate": "1", "type": "1", "url": "https://yzy.bozedu.net" }, { "code": "zhkt", "name": "智慧课堂", "icon": "", "cate": "1", "type": "2", "url": "http://120.26.51.195:8008/desadmin.php" }], "user_score": "0", "product": ["课堂", "直播", "作业"], "app_url": { "A119": "https://qqyxt.m.bozedu.net/page/course/tskc_more.html", "A120": "https://qqyxt.m.bozedu.net/page/my/msg_hybrid.html?id=31", "A121": "https://qqyxt.m.bozedu.net/page/parent/msg.html", "A122": "https://qqyxt.m.bozedu.net/page/my/integral_hybrid.html", "A123": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html", "A124": "https://qqyxt.m.bozedu.net/page/my/footPrint.html", "A125": "https://qqyxt.m.bozedu.net/page/my/intergralMall.html", "A126": "https://openapi.bozedu.net/component/ebook_main/public?api=html", "A127": "https://qqyxt.m.bozedu.net/Course_registration/transfer.html?v=1", "A128": "https://qqyxt.m.bozedu.net/Course_registration/transfer.html?type=course_after_service", "A129": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=1", "A130": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=2", "A131": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=3", "A132": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=4" }, "cpm_access_level": "5", "pwd": "nmlxx2022"
//   }

// {
//     "user_id": "351713",
//     "user_name": "ceshilaoshi001",
//     "email": "",
//     "lastlogintime": "2022-09-23 10:43:37", "user_role_id": "75",
//     "user_role_name": "学校教师",
//     "user_avatar":
//     {
//         "big": "https://openapi.bozedu.net/template/default/static/img/avatar_teacher_big.png",
//         "middle": "https://openapi.bozedu.net/template/default/static/img/avatar_teacher_middle.png",
//         "small": "https://openapi.bozedu.net/template/default/static/img/avatar_teacher_small.png"
//     },
//     "user_no": { "no_title": "工号", "no": "" },
//     "token": "5a588WXkYzUZi_bsEAxIak37yjC4zSGoDurs40BV7uIKiC5wvoybuppUVH5JhfxFJzrW8e6uNGXRUttezJoyw6xYAtL8",
//     "user_realname": "测试老师001", "user_phone": "",
//     "idcard": "",
//     "gender": "0",
//     "gender_char": "保密",
//     "qq": "",
//     "nationality": "",
//     "address": "",
//     "education": "",
//     "area_info":
//     {
//         "area_id1": "5",
//         "area_id2": "95",
//         "area_id3": "1418",
//         "area_id4": "0",
//         "area_id1_char": "内蒙古自治区", "area_id2_char": "呼和浩特市", "area_id3_char": "回民区", "area_id4_char": "", "area_code1": "150000000000", "area_code2": "150100000000", "area_code3": "150103000000", "area_code4": "", "area_code_dist": "150103000000"
//     },
//     "sm_info":
//     {
//         "sm_id": "666",
//         "adminid": "303115",
//         "sm_name": "呼和浩特回民区南马路小学", "is_org": "0",
//         "up_org": "0",
//         "area_id1": "5",
//         "area_id2": "95",
//         "area_id3": "1418",
//         "area_id4": "0",
//         "major_mode": "0",
//         "powers":
//         {
//             "vip_shiti": "0",
//             "vip_sucai": "0",
//             "vip_aicheck": "0"
//         }
//     },
//     "cm_info": [{
//         "cm_id": "13569",
//         "sm_id": "666",
//         "pre": "",
//         "cm_name": "一年级(1)班",
//         "grade": "1",
//         "gradeClass": "1",
//         "major_id": "",
//         "creatorid": "347869",
//         "is_manage": 1,
//         "major_name": ""
//     }],
//     "first_cm_id": "",
//     "first_cm_name": "",
//     "renke_grade":
//         [
//             {
//                 "grade": "1",
//                 "subject": "117",
//                 "grade_char": "一年级", "subject_char": "社团"
//             }
//         ],
//     "renke_subject":
//     {
//         "117":
//         {
//             "subject": "117",
//             "subject_char": "社团"
//         }
//     },
//     "related_desc": "社团",
//     "bind3rd":
//     {
//         "wechat": "0"
//     },
//     "org_info":
//     {
//         "org": "呼和浩特回民区南马路小学", "telephone": "",
//         "telephone_short": "",
//         "is_org": "0",
//         "up_org": "0",
//         "up_org_info":
//         {
//             "sm_id": "",
//             "sm_name": ""
//         }
//     },
//     "pan":
//     {
//         "unit": "G",
//         "size": "500",
//         "used": "0.00",
//         "desc": "0.00%"
//     },
//     "safe_tips": [],
//     "update_center": "https://openapi.bozedu.net",
//     "base_url":
//     {
//         "aboutus": "https://openapi.bozedu.net/aboutus",
//         "file": "https://openapi.bozedu.net", "vpn": "http://openapi.bozedu.net", "uc": "https://uc.bozedu.net",
//         "yzy": "https://yzy.bozedu.net", "kzkt": "https://kzkt.bozedu.net", "openapi": "https://openapi.bozedu.net",
//         "site_zhkt_api": "http://120.26.51.195:8008",
//         "yxxt": "https://yxxt.bozedu.net"
//     },
//     "role_system":
//         [
//             {
//                 "code": "kzkt",
//                 "name": "空中课堂",
//                 "icon": "",
//                 "cate": "1",
//                 "type": "1", "url": "https://kzkt.bozedu.net"
//             },
//             {
//                 "code": "yzy",
//                 "name": "作业系统",
//                 "icon": "",
//                 "cate": "1",
//                 "type": "1",
//                 "url": "https://yzy.bozedu.net"
//             },
//             {
//                 "code": "zhkt",
//                 "name": "智慧课堂",
//                 "icon": "",
//                 "cate": "1",
//                 "type": "2",
//                 "url": "http://120.26.51.195:8008/desadmin.php"
//             }
//         ],
//     "product":
//         ["课堂", "直播", "作业"],
//     "app_url":
//     {
//         "A119": "https://qqyxt.m.bozedu.net/page/course/tskc_more.html",
//
//         "A120": "https://qqyxt.m.bozedu.net/page/my/msg_hybrid.html?id=31",
//         "A121": "https://qqyxt.m.bozedu.net/page/parent/msg.html",
//         "A122": "https://qqyxt.m.bozedu.net/page/my/integral_hybrid.html",
//         "A123": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html",
//         "A124": "https://qqyxt.m.bozedu.net/page/my/footPrint.html",
//         "A125": "https://qqyxt.m.bozedu.net/page/my/intergralMall.html",
//         "A126": "https://openapi.bozedu.net/component/ebook_main/public?api=html", "A127": "https://qqyxt.m.bozedu.net/Course_registration/transfer.html?v=1", "A128": "https://qqyxt.m.bozedu.net/Course_registration/transfer.html?type=course_after_service",
//         "A129": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=1",
//         "A130": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=2",
//         "A131": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=3",
//         "A132": "https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=4"
//     },
//     "cpm_access_level": "5",
//     "pwd": "szbz1234"
// }
 //{"user_id":"362889","user_name":"osGjcvkGOVdRFsrPmJ2MVfLSOKzk","email":"","lastlogintime":"2023-02-17 14:55:18","regdate":"2023-02-17 14:27:53","status":"0","user_role_id":"77","user_role_name":"家长","user_avatar":{"big":"https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKTwxppn1SYBWOVTXnl516kIkU9IS4wZ9LMdquuJUHeH4qWcECpSjvHxvTibCypUh1ScEoqTzLYQmA/132","middle":"https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKTwxppn1SYBWOVTXnl516kIkU9IS4wZ9LMdquuJUHeH4qWcECpSjvHxvTibCypUh1ScEoqTzLYQmA/132","small":"https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKTwxppn1SYBWOVTXnl516kIkU9IS4wZ9LMdquuJUHeH4qWcECpSjvHxvTibCypUh1ScEoqTzLYQmA/132"},"user_no":{"no_title":"学号","no":""},"token":"b130Q9b3Z8R7OgHNgDyHw2Enj8uaOrgfsXGhU7Xf18h8kdHah1hxVN6Yw8xlMMIjgzFwSqC3ZcSePP0cL_bkUrncHZzI","user_realname":"趙","user_phone":"","idcard":"","gender":"0","gender_char":"保密","qq":"","nationality":"","address":"","education":"","area_info":{"area_id1":"5","area_id2":"95","area_id3":"1418","area_id4":"0","area_id1_char":"内蒙古自治区","area_id2_char":"呼和浩特市","area_id3_char":"回民区","area_id4_char":"","area_code1":"150000000000","area_code2":"150100000000","area_code3":"150103000000","area_code4":"","area_code_dist":"150103000000"},"sm_info":{"sm_id":"0","sm_name":"","area_id1":"0","area_id2":"0","area_id3":"0","area_id4":"0","major_mode":"0"},"first_cm_id":"","first_cm_name":"","cm_info":[],"related_desc":"全部","bind3rd":{"wechat":"1"},"my_org":[],"org_info":{"org":null,"org_id":null,"telephone":"","telephone_short":"","is_org":"1","up_org":null,"up_org_name":null,"up_org_info":{"sm_id":"","sm_name":""}},"pan":{"unit":"G","size":"0","used":"0.00","desc":"无限制"},"safe_tips":[],"update_center":"https://openapi.bozedu.net","base_url":{"aboutus":"https://openapi.bozedu.net/aboutus","file":"https://openapi.bozedu.net","vpn":"http://openapi.bozedu.net","uc":"https://uc.bozedu.net","yzy":"https://yzy.bozedu.net","kzkt":"https://kzkt.bozedu.net","openapi":"https://openapi.bozedu.net","site_zhkt_api":"http://120.26.51.195:8008","yxxt":"https://yxxt.bozedu.net"},"role_system":[{"code":"kzkt","name":"空中课堂","icon":"","cate":"1","type":"1","url":"https://kzkt.bozedu.net"},{"code":"yzy","name":"作业系统","icon":"","cate":"1","type":"1","url":"https://yzy.bozedu.net"},{"code":"zhkt","name":"智慧课堂","icon":"","cate":"1","type":"2","url":"http://120.26.51.195:8008/desadmin.php"}],"user_score":"0","product":["课堂","直播","作业"],"app_url":{"A119":"https://qqyxt.m.bozedu.net/page/course/tskc_more.html","A120":"https://qqyxt.m.bozedu.net/page/my/msg_hybrid.html?id=31","A121":"https://qqyxt.m.bozedu.net/page/parent/msg.html","A122":"https://qqyxt.m.bozedu.net/page/my/integral_hybrid.html","A123":"https://qqyxt.m.bozedu.net/ktfx/xqbg.html","A124":"https://qqyxt.m.bozedu.net/page/my/footPrint.html","A125":"https://qqyxt.m.bozedu.net/page/my/intergralMall.html","A126":"https://openapi.bozedu.net/component/ebook_main/public?api=html","A127":"https://qqyxt.m.bozedu.net/Course_registration/transfer.html?v=1","A128":"https://qqyxt.m.bozedu.net/Course_registration/transfer.html?type=course_after_service","A129":"https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=1","A130":"https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=2","A131":"https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=3","A132":"https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=4"},"cpm_access_level":"6","pwd":"Szbz1234"}
// }
//{"user_id":"317801","user_name":"js01","email":"js0116489@mail.com","lastlogintime":"2023-02-24 11:01:50","regdate":"2022-08-23 13:34:51","status":"0","user_role_id":"75","user_role_name":"学校教师","user_avatar":{"big":"https://openapi.bozedu.net/template/default/static/img/avatar_teacher_big.png","middle":"https://openapi.bozedu.net/template/default/static/img/avatar_teacher_middle.png","small":"https://openapi.bozedu.net/template/default/static/img/avatar_teacher_small.png"},"user_no":{"no_title":"工号","no":""},"token":"abcenL_axDUJ_bteOMKF1fWLhhoJHDhdMiQ11I9Txb4AcFIZuPOQ11iK_a9O3SH1omh5v2vUNSZbn4K41J6tPwhUf8EF6c","user_realname":"测试教师01","user_phone":"","idcard":"","gender":"0","gender_char":"保密","qq":"","nationality":"","intro":"","address":"","education":"","area_info":{"area_id1":"5","area_id2":"95","area_id3":"1418","area_id4":"0","area_id1_char":"内蒙古自治区","area_id2_char":"呼和浩特市","area_id3_char":"回民区","area_id4_char":"","area_code1":"150000000000","area_code2":"150100000000","area_code3":"150103000000","area_code4":"","area_code_dist":"150103000000"},"sm_info":{"sm_id":"666","adminid":"303115","sm_name":"呼和浩特回民区南马路小学","is_org":"0","up_org":"0","area_id1":"5","area_id2":"95","area_id3":"1418","area_id4":"0","major_mode":"0","powers":{"vip_shiti":"0","vip_sucai":"0","vip_aicheck":"0"}},"cm_info":[],"first_cm_id":"","first_cm_name":"","renke_grade":[{"grade":"1","subject":"1","grade_char":"一年级","subject_char":"语文"},{"grade":"2","subject":"1","grade_char":"二年级","subject_char":"语文"}],"renke_subject":{"1":{"subject":"1","subject_char":"语文"}},"related_desc":"语文","bind3rd":{"wechat":"0"},"my_org":[],"org_info":{"org":null,"org_id":null,"telephone":"","telephone_short":"","is_org":"1","up_org":null,"up_org_name":null,"up_org_info":{"sm_id":"","sm_name":""}},"pan":{"unit":"G","size":"0","used":"0.00","desc":"无限制"},"safe_tips":["您的密码安全程度较低,请立即修改","必须包含数字、字母大小写或者特殊字符，长度8位及以上"],"update_center":"https://openapi.bozedu.net","base_url":{"aboutus":"https://openapi.bozedu.net/aboutus","file":"https://openapi.bozedu.net","vpn":"http://openapi.bozedu.net","uc":"https://uc.bozedu.net","yzy":"https://yzy.bozedu.net","kzkt":"https://kzkt.bozedu.net","openapi":"https://openapi.bozedu.net","site_zhkt_api":"http://120.26.51.195:8008","yxxt":"https://yxxt.bozedu.net"},"role_system":[{"code":"kzkt","name":"空中课堂","icon":"","cate":"1","type":"1","url":"https://kzkt.bozedu.net"},{"code":"yzy","name":"作业系统","icon":"","cate":"1","type":"1","url":"https://yzy.bozedu.net"},{"code":"zhkt","name":"智慧课堂","icon":"","cate":"1","type":"2","url":"http://120.26.51.195:8008/desadmin.php"}],"user_score":"120","product":["课堂","直播","作业"],"app_url":{"A119":"https://qqyxt.m.bozedu.net/page/course/tskc_more.html","A120":"https://qqyxt.m.bozedu.net/page/my/msg_hybrid.html?id=31","A121":"https://qqyxt.m.bozedu.net/page/parent/msg.html","A122":"https://qqyxt.m.bozedu.net/page/my/integral_hybrid.html","A123":"https://qqyxt.m.bozedu.net/ktfx/xqbg.html","A124":"https://qqyxt.m.bozedu.net/page/my/footPrint.html","A125":"https://qqyxt.m.bozedu.net/page/my/intergralMall.html","A126":"https://openapi.bozedu.net/component/ebook_main/public?api=html","A127":"https://qqyxt.m.bozedu.net/Course_registration/transfer.html?v=1","A128":"https://qqyxt.m.bozedu.net/Course_registration/transfer.html?type=course_after_service","A129":"https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=1","A130":"https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=2","A131":"https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=3","A132":"https://qqyxt.m.bozedu.net/ktfx/xqbg.html?tab=4"},"cpm_access_level":"5","pwd":"szbz1234"}

const ROLE_MAP = {
  // 管理员
  '3': 'gly',
  // 省市县
  '63': 'sheng',
  '66': 'shi',
  '69': 'xian',
  // 校长
  '72': 'xz',
  // 教师
  '75': 'js',
  // 学生
  '76': 'xs',
  // 家长
  '77': 'jz',
}

export default {
  ...user,
  _role: ROLE_MAP[user?.user_role_id] ?? 'others'
}

