商户NPC读配置
This commit is contained in:
parent
2c35ca7388
commit
d4c92efa5b
@ -15,6 +15,10 @@ func (this *apiComp) CustomerCheck(session comm.IUserSession, req *pb.SmithyCust
|
||||
|
||||
func (this *apiComp) Customer(session comm.IUserSession, req *pb.SmithyCustomerReq) (code pb.ErrorCode, data proto.Message) {
|
||||
customerCount := this.module.configure.GetGlobalConf().SmithyMaxNpc
|
||||
if customerCount <= 0 {
|
||||
code = pb.ErrorCode_ConfigNoFound
|
||||
return
|
||||
}
|
||||
cus, err := this.module.modelTrade.getDBCustomer(session.GetUserId())
|
||||
if err != nil {
|
||||
if err == mongo.ErrNoDocuments {
|
||||
|
Loading…
Reference in New Issue
Block a user