Exemplo n.º 1
0
 /// <summary>
 /// 上传头像
 /// </summary>
 /// <param name="userid"></param>
 /// <returns></returns>
 public JsonResult HeadImage(string userid, string data)
 {
     //LogHelper.WriteTextLog("HeadImage", "userid:" + userid + "data:" + data, DateTime.Now);
     try
     {
         CustomerExtendEntity entity   = new CustomerExtendEntity();
         CustomerExtendEntity customer = CustomerService.AddFile(long.Parse(userid), data, "CD05");//用户头像
         return(Json(JsonHelper.ToJson(customer)));
     }
     catch (Exception ex)
     {
         LogHelper.WriteTextLog("HeadImage", ex.ToString(), DateTime.Now);
     }
     return(Json(""));
 }