windf17

Results 13 comments of windf17

刚刚又测试了edge浏览器,也有类似的情况。不知道为啥。 ![Peek 2022-04-03 19-00](https://user-images.githubusercontent.com/65995709/161424545-7616a17e-8293-46e1-ad12-792b61830a4f.gif)

如果有需要作者可以加我qq40859419,相互交流、探讨。

If you put the message in a variables outside the getx's Widget, then there will be a problem with the translations, because the content of that variable is determined, It...

如果没有分词工具的帮助,那么地址库变得毫无意义,例如某地址写昆山市花园新村1号102室,经过人工核对后该地址确认可投递非错误地址,那么数据库里有一条昆山市花园新村1号102室可投递的记录。接下来遇到一条地址信息是昆山花园新村2号303室,若未经过分词并规范化地址,那这条记录是匹配不到数据库里的信息的。这样子的情况很多很多,存在大量的重复核对的情况。迫切需要地名处理专业领域的词库、字典。

请问怎么训练pkuseg,我发现pkuseg处理地址信息的时候会把数字和汉字分成一个词,我希望添加规则,数字和绝大多数汉字不能组成词,只能和号、楼、室、弄组成词,但是不知道方法,真心求教,万分感谢!

> You just need to not call `r.Response.WriteJsonExit(r.GetHandlerResponse())` in the middleware to solve the problem of `null` string. I tested that if I don't write the line "r.Response.WriteJsonExit(r.GetHandlerResponse())", the front...

My current solution is to write all normal data returns as r.Response.WriteJsonExit, return if error information is returned, let r.GetError receive the error, and then uniformly give the json returned...

// 查:账户类型全部记录 func AccountTypeGet(ctx context.Context, req *api.AccountTypeGetReq) (res *api.AccountTypeGetRes, er error) { data, er := accountType.Get(ctx) if er != nil { return } res = &api.AccountTypeGetRes{ Res: api.Res{ State: consts.MESSAGE,...

我找到了有关代码: // 登录成功后返回token func PersonLoginAfter(r *ghttp.Request, respData gtoken.Resp) { if respData.Success() { r.Response.WriteJsonExit(g.Map{ "state": consts.SUCCESS, "message": "登录成功!", "data": respData.GetString(gtoken.KeyToken), // 登录成功后data中存放了token }) } else { r.Response.WriteJsonExit(g.Map{ "state": consts.ERROR, "message": "登录失败!",...

> yes func (r *ghttp.Request) GetHandlerResponse() interface{} GetHandlerResponse retrieves and returns the handler response object and its error. func PersonLoginAfter(r *ghttp.Request, respData gtoken.Resp) { if respData.Success() { r.Response.WriteJsonExit(g.Map{ "state": consts.SUCCESS,...