Ejemplo n.º 1
0
    private string UpdateFromWx()
    {
        WxUserInfo wxHelper = new WxUserInfo();
        string     id       = Request.Form["Id"];
        string     type     = Request.Form["type"];
        string     res      = "";

        if (type == "department")
        {
            object val = wxHelper.GetWxDepartmentJson(id);
            res = UserInfoManage.SaveDepartmentFromWx(val);
        }
        else
        {
            object val = wxHelper.GetWxUserInfoJsonByDepartmentId("1");
            res = UserInfoManage.SaveUserInfoFromWx(val);
        }

        return(res);
    }