Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
fe07a617
Commit
fe07a617
authored
Mar 17, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
267ac48f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+13
-11
No files found.
Edu.WebApi/Controllers/User/UserController.cs
View file @
fe07a617
...
...
@@ -1797,23 +1797,25 @@ namespace Edu.WebApi.Controllers.User
#
endregion
var
oldModel
=
employeeModule
.
GetEmployeeModule
(
0
,
extModel
.
AccountId
,
extModel
.
AccountType
.
ToInt
());
if
(
oldModel
.
IsTenCccUser
==
0
&&
extModel
.
IsTenCccUser
==
1
)
if
(
oldModel
!=
null
)
{
var
cccResult
=
await
new
TenCloudCCCHelper
().
SetUserToCCCUser
(
extModel
);
if
(!
cccResult
.
result
)
if
(
oldModel
.
IsTenCccUser
==
0
&&
extModel
.
IsTenCccUser
==
1
)
{
return
ApiResult
.
Failed
(
$"同步电话坐席失败,
{
cccResult
.
message
}
"
);
var
cccResult
=
await
new
TenCloudCCCHelper
().
SetUserToCCCUser
(
extModel
);
if
(!
cccResult
.
result
)
{
return
ApiResult
.
Failed
(
$"同步电话坐席失败,
{
cccResult
.
message
}
"
);
}
}
}
else
if
(
oldModel
.
IsTenCccUser
==
1
&&
extModel
.
IsTenCccUser
==
0
)
{
var
cccResult
=
await
new
TenCloudCCCHelper
().
DelUserToCCCUser
(
extModel
);
if
(!
cccResult
.
result
)
else
if
(
oldModel
.
IsTenCccUser
==
1
&&
extModel
.
IsTenCccUser
==
0
)
{
return
ApiResult
.
Failed
(
$"电话客服功能关闭失败,请联系管理员"
);
var
cccResult
=
await
new
TenCloudCCCHelper
().
DelUserToCCCUser
(
extModel
);
if
(!
cccResult
.
result
)
{
return
ApiResult
.
Failed
(
$"电话客服功能关闭失败,请联系管理员"
);
}
}
}
bool
flag
=
employeeModule
.
SetEmployeeModule
(
extModel
,
TXLToken
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment