Commit 13d61037 by 朱继来

调整

parent cea35bd3
Showing with 2 additions and 1 deletions
...@@ -48,7 +48,9 @@ func UpdateLimitFollowTime() { ...@@ -48,7 +48,9 @@ func UpdateLimitFollowTime() {
db.Get(&user_info, "select * from lie_user where user_id = ?", sales.User_Id) db.Get(&user_info, "select * from lie_user where user_id = ?", sales.User_Id)
defer db.Close() defer db.Close()
curr_time := time.Now().Unix()
if user_info.Channel_type != 1 { if user_info.Channel_type != 1 {
dao.GetDb().Exec("update lie_salesman set sys_limit = ?, limit_follow_time = ?, update_time = ? where user_id = ?", -1, 0, curr_time, sales.User_Id)
continue continue
} }
...@@ -64,7 +66,6 @@ func UpdateLimitFollowTime() { ...@@ -64,7 +66,6 @@ func UpdateLimitFollowTime() {
limit_follow_time := CalLimitFollowTime(sales.User_Id, sales.Assign_Time) limit_follow_time := CalLimitFollowTime(sales.User_Id, sales.Assign_Time)
// 2-3、更新限制时间、同步字段-1 // 2-3、更新限制时间、同步字段-1
curr_time := time.Now().Unix()
_, err := dao.GetDb().Exec("update lie_salesman set sys_limit = ?, limit_follow_time = ?, update_time = ? where user_id = ?", -1, limit_follow_time, curr_time, sales.User_Id) _, err := dao.GetDb().Exec("update lie_salesman set sys_limit = ?, limit_follow_time = ?, update_time = ? where user_id = ?", -1, limit_follow_time, curr_time, sales.User_Id)
if err != nil { if err != nil {
......
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 sign in to comment