| | |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Text.RegularExpressions; |
| | | using System.Threading.Tasks; |
| | | using Microsoft.AspNetCore.Http; |
| | | using WIDESEAWCS_Core; |
| | |
| | | |
| | | WebResponseContent FaceEnter(ImageModel model); |
| | | |
| | | |
| | | /// <summary> |
| | | /// 浜鸿劯鐧诲叆缁欏墠绔繑鍥炶处鍙峰拰瀵嗙爜 |
| | | /// </summary> |
| | | /// <param name="ID">鐢ㄦ埛id</param> |
| | | /// <returns></returns> |
| | | WebResponseContent ReturnAccount(int ID); |
| | | } |
| | | |
| | | public class ImageModel |
| | | { |
| | | public string Base64Image { get; set; } |
| | | private string base64Img; |
| | | public string Base64Image |
| | | { |
| | | get |
| | | { |
| | | string pattern = @"^data:image/[^;]+;base64,"; |
| | | return base64Img = Regex.Replace(base64Img, pattern, ""); |
| | | } |
| | | set { base64Img = value; } |
| | | } |
| | | |
| | | public int UserId { get; set; } |
| | | |
| | | } |
| | | } |