|
|
@@ -154,7 +154,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
154
|
154
|
/// <param name="address"></param>
|
|
155
|
155
|
/// <returns></returns>
|
|
156
|
156
|
public bool AnswersWX(string telphone, string openid, string[] ans,
|
|
157
|
|
- string name, string phone, string countryid, string address)
|
|
|
157
|
+ string name, string phone, string countryid, string address,Model.T_Sys_Users users)
|
|
158
|
158
|
{
|
|
159
|
159
|
int cc = 0;int telid = 0;string dateflag = DateTime.Now.ToString("yyyyMMddHHmmssfff");
|
|
160
|
160
|
if (!string.IsNullOrWhiteSpace(telphone))
|
|
|
@@ -173,7 +173,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
173
|
173
|
}
|
|
174
|
174
|
otnModel.F_Address = address;
|
|
175
|
175
|
otnModel.F_Openid = openid;
|
|
176
|
|
- otnModel.F_PagerId = 2;
|
|
|
176
|
+ otnModel.F_PagerId = int.Parse(Configs.GetValue("WXPagerID")); ;
|
|
177
|
177
|
otnModel.F_DeleteFlag = 0;
|
|
178
|
178
|
|
|
179
|
179
|
otnModel.F_CusID = 0;
|
|
|
@@ -192,8 +192,11 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
192
|
192
|
ansModel.F_PagerID = otnModel.F_PagerId;
|
|
193
|
193
|
ansModel.F_CusID = 0;
|
|
194
|
194
|
ansModel.F_CusTelID = telid;
|
|
195
|
|
- ansModel.F_OptBy = CurrentUser.UserData.F_UserId;
|
|
196
|
|
- ansModel.F_OptByName = CurrentUser.UserData.F_UserName;
|
|
|
195
|
+ if (users != null)
|
|
|
196
|
+ {
|
|
|
197
|
+ ansModel.F_OptBy = users.F_Id;
|
|
|
198
|
+ ansModel.F_OptByOpenid = users.F_OpenId;
|
|
|
199
|
+ }
|
|
197
|
200
|
ansModel.F_OptOn = DateTime.Now;
|
|
198
|
201
|
ansModel.F_Expand1 = countryid.ToString();
|
|
199
|
202
|
ansModel.F_Expand3 = dateflag;
|
|
|
@@ -234,11 +237,11 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
234
|
237
|
#endregion
|
|
235
|
238
|
#region 保存日志
|
|
236
|
239
|
|
|
237
|
|
- //otnModel.F_AskRes = askqids;
|
|
238
|
|
- //otnModel.F_AskInfo = ansids;
|
|
239
|
|
- //otnwxBLL.Update(otnModel);
|
|
|
240
|
+ otnModel.F_AskRes = askqids;
|
|
|
241
|
+ otnModel.F_AskInfo = ansids;
|
|
|
242
|
+ otnwxBLL.Update(otnModel);
|
|
240
|
243
|
|
|
241
|
|
- //planrecord(otnModel);
|
|
|
244
|
+ planrecord(otnModel);
|
|
242
|
245
|
#endregion
|
|
243
|
246
|
}
|
|
244
|
247
|
}
|