1
This commit is contained in:
16
business/jxutils/jxcontext/context_test.go
Normal file
16
business/jxutils/jxcontext/context_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package jxcontext
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
)
|
||||
|
||||
func TestNewCtx(t *testing.T) {
|
||||
fmt.Println("cc", AdminCtx)
|
||||
//aa := jxcontext.NewWithOnlyUserName()
|
||||
fmt.Println("cc", AdminCtx.GetTrackInfo())
|
||||
fmt.Println("cc", AdminCtx.GetUserID())
|
||||
fmt.Println("cc", AdminCtx.GetUserName())
|
||||
|
||||
}
|
||||
@@ -352,9 +352,8 @@ func (p *PurchaseHandler) onStoreStatusChanged(msg *mtwmapi.CallbackMsg) (respon
|
||||
response = mtwmapi.Err2CallbackResponse(err, "")
|
||||
// 操作日志(美团外卖)
|
||||
store := fmt.Sprintf("美团外卖回调门店改变回调(营业状态/审核状态):门店id:%s,美团门店状态:%d.[121营业,120休息,18上线,19下线]", vendorStoreID, int(utils.Str2Int64(msg.FormData.Get("poi_status"))))
|
||||
//err = event.AddOperateEvent(ctx, ctx.GetTrackInfo(), store, err.Error(), "", int(time.Now().UnixNano()/1000), "UpdateStore")
|
||||
err = event.AddOperateEvent(jxcontext.AdminCtx, "jdadmin-default", store, err.Error(), "", int(time.Now().UnixNano()/1000), "UpdateStore")
|
||||
fmt.Println("ctx========",store)
|
||||
err = event.AddOperateEvent(jxcontext.AdminCtx, "jdadmin-default", store, err.Error(), "", int(time.Now().UnixNano()/1000), "UpdateStore")
|
||||
fmt.Println("ctx========",store)
|
||||
return response
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user