cppjieba-server icon indicating copy to clipboard operation
cppjieba-server copied to clipboard

看了下代码,POST模式仅支持 simple

Open qinggan opened this issue 7 years ago • 1 comments

如题,希望 POST 模式和 GET 模式能混用,但 method 和 format 希望能走 GET 来实现变更输出。

qinggan avatar Feb 19 '18 06:02 qinggan

virtual bool DoPOST(const HttpReqInfo& httpReq, string& strSnd) { vector words; string sentence, method, format;

httpReq.GET("method", method);
jieba_.Cut(sentence, words, true);
httpReq.GET("format", format);

Run(httpReq.GetBody(), method,format, strSnd);

//Run(httpReq.GetBody(), "MIX", "simple", strSnd);
return true;

}

这样就可以支持了。。。。

kissthink avatar Jul 04 '18 16:07 kissthink