Example #1
0
        public JsonResult GetServerMaterial([FromBody] ParmInt obj)
        {
            var gzhModel = _settingService.GetModelAsync(m => m.Id == obj.id).Result.data;
            var token    = WxTools.GetAccess(gzhModel.AppId, gzhModel.AppSecret);
            var list     = WxTools.GetMediaList(token.access_token);

            return(Json(list));
        }
Example #2
0
        public async Task <IActionResult> GetServerMaterial([FromBody] ParmInt obj)
        {
            var gzhModel = await _settingService.GetModelAsync(m => m.Id == obj.id);

            var token = WxTools.GetAccess(gzhModel.data.AppId, gzhModel.data.AppSecret);
            var list  = WxTools.GetMediaList(token.access_token);

            return(Ok(list));
        }
Example #3
0
 public void OnGet()
 {
     token = WxTools.GetAccess("wx7797e2efb5dc9502", "9bfed87a0157250c26479a084c207b12");
     var tests = WxTools.GetMediaList(token.access_token);
 }