/// <summary> /// 上传临时素材文件 /// </summary> /// <param name="type"></param> /// <param name="file"></param> /// <returns></returns> public MediaUploadRes Media_Upload(EnumUploadType type, string file) { var rel = QyAPI.Media_Upload(access_token, type, file); if (IsAccessTokenError(rel)) { rel = QyAPI.Media_Upload(access_token, type, file); IsAccessTokenError(rel, false); } return(rel); }