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)); }
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)); }
public void OnGet() { token = WxTools.GetAccess("wx7797e2efb5dc9502", "9bfed87a0157250c26479a084c207b12"); var tests = WxTools.GetMediaList(token.access_token); }