Commit 47f034c3 authored by chenweijian's avatar chenweijian

im check

parent b1c86307
...@@ -494,10 +494,12 @@ func CheckCpImExpire(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -494,10 +494,12 @@ func CheckCpImExpire(c *gin.Context) (*mycontext.MyContext, error) {
switch cpRecord.Status { switch cpRecord.Status {
case cp_e.CpInvite: case cp_e.CpInvite:
if userId == cpRecord.UserId { // 发起人 if userId == cpRecord.UserId { // 发起人
resId = common.MSG_ID_ALREADY_EXPIRED resId = common.MSG_ID_ALREADY_EXPIRED // 等待对方接受
} }
case cp_e.CpInviteAccept, cp_e.CpInviteRefuse: case cp_e.CpInviteAccept:
resId = common.MSG_ID_ALREADY_EXPIRED resId = common.MSG_ID_ALREADY_EXPIRED // 已接受
case cp_e.CpInviteRefuse:
resId = common.MSG_ID_ALREADY_EXPIRED // 已拒绝
case cp_e.CpInviteExpired: case cp_e.CpInviteExpired:
resId = common.MSG_ID_ALREADY_EXPIRED resId = common.MSG_ID_ALREADY_EXPIRED
} }
...@@ -514,12 +516,12 @@ func CheckCpImExpire(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -514,12 +516,12 @@ func CheckCpImExpire(c *gin.Context) (*mycontext.MyContext, error) {
switch cpCancel.Status { switch cpCancel.Status {
case cp_e.CpCancel: case cp_e.CpCancel:
if userId == cpCancel.UserId { // 发起人 if userId == cpCancel.UserId { // 发起人
resId = common.MSG_ID_ALREADY_EXPIRED resId = common.MSG_ID_ALREADY_EXPIRED // 等待对方接受
} }
case cp_e.CpCancelRevoke, cp_e.CpCancelAccept: case cp_e.CpCancelRevoke:
resId = common.MSG_ID_ALREADY_EXPIRED resId = common.MSG_ID_ALREADY_EXPIRED // 已被取消
case cp_e.CpCancelAcceptAuto: case cp_e.CpCancelAccept, cp_e.CpCancelAcceptAuto:
resId = common.MSG_ID_ALREADY_EXPIRED resId = common.MSG_ID_ALREADY_EXPIRED // 已解绑
} }
} }
if resId > 0 { if resId > 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment