|
|
@@ -1,6 +1,7 @@
|
|
|
package cron_controller
|
|
|
|
|
|
import (
|
|
|
+ "fohow.com/apps/models/express_model"
|
|
|
"github.com/astaxie/beego"
|
|
|
"github.com/astaxie/beego/context"
|
|
|
|
|
|
@@ -81,6 +82,9 @@ func exec(name string) {
|
|
|
go OrderCancelAutomatically()
|
|
|
case "send_cent": //补发积分执行一次
|
|
|
go patchCent()
|
|
|
+ case "clear_update_orders": //清理过期物流数据
|
|
|
+ go patchCent()
|
|
|
+ go express_model.ClearUpdateOrders()
|
|
|
default:
|
|
|
beego.BeeLogger.Error("Didn't get task wity name:[%s]", name)
|
|
|
}
|