|
@@ -82,8 +82,9 @@ func AddSpecialRecord(user *models.WxUserItem, specialId, stopTime int) (err err
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if !havePower {
|
|
|
- return
|
|
|
+ var permissionCode int
|
|
|
+ if havePower {
|
|
|
+ permissionCode = 1
|
|
|
}
|
|
|
var sellerName string
|
|
|
//获取销售信息
|
|
@@ -116,6 +117,7 @@ func AddSpecialRecord(user *models.WxUserItem, specialId, stopTime int) (err err
|
|
|
item.RegisterPlatform = utils.REGISTER_PLATFORM
|
|
|
item.YanxuanSpecialId = specialId
|
|
|
item.StopTime = stopTime
|
|
|
+ item.PermissionCode = permissionCode
|
|
|
_, e = models.AddCygxYanxuanSpecialRecord(item) // 添加历史记录
|
|
|
if e != nil {
|
|
|
err = errors.New("AddCygxYanxuanSpecialRecord, Err: " + e.Error())
|
|
@@ -169,6 +171,7 @@ func AddSpecialRecord(user *models.WxUserItem, specialId, stopTime int) (err err
|
|
|
itemLog.RegisterPlatform = utils.REGISTER_PLATFORM
|
|
|
itemLog.YanxuanSpecialId = specialId
|
|
|
itemLog.StopTime = stopTime
|
|
|
+ itemLog.PermissionCode = permissionCode
|
|
|
_, e = models.AddCygxYanxuanSpecialRecordLog(itemLog) // 添加历史记录
|
|
|
if e != nil {
|
|
|
err = errors.New("AddCygxYanxuanSpecialRecordLog, Err: " + e.Error())
|