Browse Source

修改 language

yuanrf 3 days ago
parent
commit
ef3c210fa1

+ 4 - 1
OASystem/OASystem.Infrastructure/Repositories/Resource/OfficialActivitiesRepository.cs

@@ -194,6 +194,8 @@ FROM
         {
             var result = new Result() { Code = -2, Msg = "未知错误" };
 
+            var language = dto?.TranslatorInfo?.Language;
+
             #region 特殊字符转码  037 - 4.28 15:17
 
             if (!string.IsNullOrEmpty(dto.Contact))
@@ -241,6 +243,7 @@ FROM
                 DataID = await _sqlSugar.Insertable(res_InvitationData).ExecuteReturnIdentityAsync();
                 var _InvitationOfficialActivityData = _mapper.Map<Res_OfficialActivities>(dto);
                 _InvitationOfficialActivityData.DataId = DataID;
+                _InvitationOfficialActivityData.Language = language;
                 int id = await _sqlSugar.Insertable(_InvitationOfficialActivityData).ExecuteReturnIdentityAsync();
                 if (id == 0)
                 {
@@ -378,7 +381,7 @@ FROM
                     Attendees = dto.Attendees,
                     IsNeedTrans = dto.IsNeedTrans,
                     //Translators = dto.Translators,
-                    Language = dto.language,
+                    Language = language,
                     Trip = dto.Trip,
                     CreateUserId = dto.CreateUserId,
                     Remark = dto.Remark,