@@ -246,7 +246,7 @@ bool HTTPTask_TastPost_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
246246 memset (tszKey, ' \0 ' , XPATH_MAX);
247247 memset (tszValue, ' \0 ' , XPATH_MAX);
248248
249- if (0 != _tcsxncmp (lpszFuncName, tszUrlName, _tcsxlen (lpszFuncName)))
249+ if (0 != _tcsxnicmp (lpszFuncName, tszUrlName, _tcsxlen (lpszFuncName)))
250250 {
251251 ModuleProtocol_Packet_Common (tszSDBuffer, &nSDLen, ERROR_XENGINE_PROTOCL_HTTP_FAILURE, _X (" request url is incorrect" ));
252252 XEngine_Network_Send (lpszClientAddr, tszSDBuffer, nSDLen);
@@ -256,7 +256,7 @@ bool HTTPTask_TastPost_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
256256 }
257257 // 获得函数名
258258 BaseLib_String_GetKeyValue (pptszList[0 ], " =" , tszKey, tszValue);
259- if (0 != _tcsxncmp (lpszParamFuncKey, tszKey, _tcsxlen (lpszParamFuncKey)))
259+ if (0 != _tcsxnicmp (lpszParamFuncKey, tszKey, _tcsxlen (lpszParamFuncKey)))
260260 {
261261 ModuleProtocol_Packet_Common (tszSDBuffer, &nSDLen, ERROR_XENGINE_PROTOCL_HTTP_FAILURE, _X (" request url is incorrect" ));
262262 XEngine_Network_Send (lpszClientAddr, tszSDBuffer, nSDLen);
@@ -271,57 +271,57 @@ bool HTTPTask_TastPost_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
271271 XEngine_PluginTask_Handle (tszValue, lpszClientAddr, lpszMSGBuffer, nMSGLen, &pptszList, nListCount, nPluginType);
272272 return true ;
273273 }
274- if (0 == _tcsxncmp (lpszMethodPost, pSt_HTTPParam->tszHttpMethod , _tcsxlen (lpszMethodPost)))
274+ if (0 == _tcsxnicmp (lpszMethodPost, pSt_HTTPParam->tszHttpMethod , _tcsxlen (lpszMethodPost)))
275275 {
276- if (0 == _tcsxncmp (lpszParamP2PClient, tszValue, _tcsxlen (lpszParamP2PClient)))
276+ if (0 == _tcsxnicmp (lpszParamP2PClient, tszValue, _tcsxlen (lpszParamP2PClient)))
277277 {
278278 // 是不是P2P
279279 memset (tszKey, ' \0 ' , sizeof (tszKey));
280280 memset (tszValue, ' \0 ' , sizeof (tszValue));
281281 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszValue);
282282 HTTPTask_TastPost_P2PClient (lpszClientAddr, lpszMSGBuffer, nMSGLen, _ttxoi (tszValue));
283283 }
284- else if (0 == _tcsxncmp (lpszParamZIPCode, tszValue, _tcsxlen (lpszParamZIPCode)))
284+ else if (0 == _tcsxnicmp (lpszParamZIPCode, tszValue, _tcsxlen (lpszParamZIPCode)))
285285 {
286286 // 邮政信息:http://app.xyry.org:5501/api?function=zipcode¶ms1=0
287287 memset (tszKey, ' \0 ' , sizeof (tszKey));
288288 memset (tszValue, ' \0 ' , sizeof (tszValue));
289289 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszValue);
290290 HTTPTask_TastPost_PostCode (lpszClientAddr, lpszMSGBuffer, nMSGLen, _ttxoi (tszValue));
291291 }
292- else if (0 == _tcsxncmp (lpszParamXLog, tszValue, _tcsxlen (lpszParamXLog)))
292+ else if (0 == _tcsxnicmp (lpszParamXLog, tszValue, _tcsxlen (lpszParamXLog)))
293293 {
294294 // 日志信息:http://app.xyry.org:5501/api?function=log¶ms1=0
295295 memset (tszKey, ' \0 ' , sizeof (tszKey));
296296 memset (tszValue, ' \0 ' , sizeof (tszValue));
297297 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszValue);
298298 HTTPTask_TastPost_LogInfo (lpszClientAddr, lpszMSGBuffer, nMSGLen, _ttxoi (tszValue));
299299 }
300- else if (0 == _tcsxncmp (lpszParamQRCode, tszValue, _tcsxlen (lpszParamQRCode)))
300+ else if (0 == _tcsxnicmp (lpszParamQRCode, tszValue, _tcsxlen (lpszParamQRCode)))
301301 {
302302 // 二维码生成:http://app.xyry.org:5501/api?function=qrcode¶ms1=0 或者 1
303303 memset (tszKey, ' \0 ' , sizeof (tszKey));
304304 memset (tszValue, ' \0 ' , sizeof (tszValue));
305305 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszValue);
306306 HTTPTask_TaskPost_QRCode (lpszClientAddr, lpszMSGBuffer, nMSGLen, _ttxoi (tszValue));
307307 }
308- else if (0 == _tcsxncmp (lpszParamSocket, tszValue, _tcsxlen (lpszParamSocket)))
308+ else if (0 == _tcsxnicmp (lpszParamSocket, tszValue, _tcsxlen (lpszParamSocket)))
309309 {
310310 // 网络测试:http://app.xyry.org:5501/api?function=socket¶ms1=0 或者 1
311311 memset (tszKey, ' \0 ' , sizeof (tszKey));
312312 memset (tszValue, ' \0 ' , sizeof (tszValue));
313313 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszValue);
314314 HTTPTask_TastPost_SocketTest (lpszClientAddr, lpszMSGBuffer, nMSGLen, _ttxoi (tszValue));
315315 }
316- else if (0 == _tcsxncmp (lpszParamDTest, tszValue, _tcsxlen (lpszParamDTest)))
316+ else if (0 == _tcsxnicmp (lpszParamDTest, tszValue, _tcsxlen (lpszParamDTest)))
317317 {
318318 // 数据测试:http://app.xyry.org:5501/api?function=dtest¶ms1=0 或者 1
319319 memset (tszKey, ' \0 ' , sizeof (tszKey));
320320 memset (tszValue, ' \0 ' , sizeof (tszValue));
321321 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszValue);
322322 HTTPTask_TastPost_DTest (lpszClientAddr, lpszMSGBuffer, nMSGLen, _ttxoi (tszValue));
323323 }
324- else if (0 == _tcsxncmp (lpszParamShortLink, tszValue, _tcsxlen (lpszParamShortLink)))
324+ else if (0 == _tcsxnicmp (lpszParamShortLink, tszValue, _tcsxlen (lpszParamShortLink)))
325325 {
326326 // 短连接:http://app.xyry.org:5501/api?function=slink¶ms1=0
327327 XCHAR tszType[64 ];
@@ -330,7 +330,7 @@ bool HTTPTask_TastPost_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
330330 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszType);
331331 HTTPTask_TaskPost_ShortLink (lpszClientAddr, lpszMSGBuffer, nMSGLen, _ttxoi (tszType));
332332 }
333- else if (0 == _tcsxncmp (lpszParamWordFilter, tszValue, _tcsxlen (lpszParamWordFilter)))
333+ else if (0 == _tcsxnicmp (lpszParamWordFilter, tszValue, _tcsxlen (lpszParamWordFilter)))
334334 {
335335 // 敏感词:http://app.xyry.org:5501/api?function=wordfilter¶ms1=0
336336 XCHAR tszType[64 ];
@@ -339,7 +339,7 @@ bool HTTPTask_TastPost_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
339339 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszType);
340340 HTTPTask_TastPost_WordFilter (lpszClientAddr, lpszMSGBuffer, nMSGLen, _ttxoi (tszType));
341341 }
342- else if (0 == _tcsxncmp (lpszParamBack, tszValue, _tcsxlen (lpszParamBack)))
342+ else if (0 == _tcsxnicmp (lpszParamBack, tszValue, _tcsxlen (lpszParamBack)))
343343 {
344344 // 后台管理接口:http://app.xyry.org:5501/api?function=back¶ms1=0
345345 XCHAR tszType[64 ];
@@ -355,12 +355,12 @@ bool HTTPTask_TastPost_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
355355 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszType);
356356 HTTPTask_TaskPost_BackService (lpszClientAddr, lpszMSGBuffer, nMSGLen, _ttxoi (tszType));
357357 }
358- else if (0 == _tcsxncmp (lpszParamImage, tszValue, _tcsxlen (lpszParamImage)))
358+ else if (0 == _tcsxnicmp (lpszParamImage, tszValue, _tcsxlen (lpszParamImage)))
359359 {
360360 // 图像处理接口:http://app.xyry.org:5501/api?function=image¶ms1=0
361361 HTTPTask_TaskPost_Image (lpszClientAddr, lpszMSGBuffer, nMSGLen, &pptszList, nListCount);
362362 }
363- else if (0 == _tcsxncmp (lpszParamDeamon, tszValue, _tcsxlen (lpszParamDeamon)))
363+ else if (0 == _tcsxnicmp (lpszParamDeamon, tszValue, _tcsxlen (lpszParamDeamon)))
364364 {
365365 // 守护进程接口:http://app.xyry.org:5501/api?function=deamon¶ms1=0
366366 if (st_ServiceConfig.st_XVerifcation .st_VerSwitch .bDeamon && !bVerification)
@@ -372,7 +372,7 @@ bool HTTPTask_TastPost_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
372372 }
373373 HTTPTask_TaskPost_Deamon (lpszClientAddr, lpszMSGBuffer, nMSGLen);
374374 }
375- else if (0 == _tcsxncmp (lpszParamMachine, tszValue, _tcsxlen (lpszParamMachine)))
375+ else if (0 == _tcsxnicmp (lpszParamMachine, tszValue, _tcsxlen (lpszParamMachine)))
376376 {
377377 // 信息收集接口:http://app.xyry.org:5501/api?function=machine¶ms1=0
378378 XCHAR tszType[64 ];
@@ -381,14 +381,14 @@ bool HTTPTask_TastPost_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
381381 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszType);
382382 HTTPTask_TastPost_Machine (lpszClientAddr, lpszMSGBuffer, nMSGLen, _ttxoi (tszType));
383383 }
384- else if (0 == _tcsxncmp (lpszParamAVRecord, tszValue, _tcsxlen (lpszParamAVRecord)))
384+ else if (0 == _tcsxnicmp (lpszParamAVRecord, tszValue, _tcsxlen (lpszParamAVRecord)))
385385 {
386386 // 信息收集接口:http://app.xyry.org:5501/api?function=avrecord¶ms1=start 或者 stop
387387 XCHAR tszType[64 ];
388388 memset (tszType, ' \0 ' , sizeof (tszType));
389389
390390 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszType);
391- if (0 == _tcsxncmp (_X (" start" ), tszType, 5 ))
391+ if (0 == _tcsxnicmp (_X (" start" ), tszType, 5 ))
392392 {
393393 HTTPTask_TaskPost_AVRecordStart (lpszClientAddr, lpszMSGBuffer, nMSGLen);
394394 }
@@ -404,32 +404,32 @@ bool HTTPTask_TastPost_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
404404 XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_ERROR, _X (" HTTP客户端:%s,发送的请求不支持:%s,内容:\r\n %s" ), lpszClientAddr, tszGBKBuffer, lpszMSGBuffer);
405405 }
406406 }
407- else if (0 == _tcsxncmp (lpszMethodGet, pSt_HTTPParam->tszHttpMethod , _tcsxlen (lpszMethodGet)))
407+ else if (0 == _tcsxnicmp (lpszMethodGet, pSt_HTTPParam->tszHttpMethod , _tcsxlen (lpszMethodGet)))
408408 {
409- if (0 == _tcsxncmp (lpszParamReload, tszValue, _tcsxlen (lpszParamReload)))
409+ if (0 == _tcsxnicmp (lpszParamReload, tszValue, _tcsxlen (lpszParamReload)))
410410 {
411411 // 是不是配置重载
412412 memset (tszKey, ' \0 ' , sizeof (tszKey));
413413 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszValue);
414414 HTTPTask_TaskGet_Reload (lpszClientAddr, tszValue);
415415 }
416- else if (0 == _tcsxncmp (lpszParamIDCard, tszValue, _tcsxlen (lpszParamIDCard)))
416+ else if (0 == _tcsxnicmp (lpszParamIDCard, tszValue, _tcsxlen (lpszParamIDCard)))
417417 {
418418 // 是不是身份证查询
419419 memset (tszKey, ' \0 ' , sizeof (tszKey));
420420 memset (tszValue, ' \0 ' , sizeof (tszValue));
421421 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszValue);
422422 HTTPTask_TaskGet_IDCard (lpszClientAddr, tszValue);
423423 }
424- else if (0 == _tcsxncmp (lpszParamBank, tszValue, _tcsxlen (lpszParamBank)))
424+ else if (0 == _tcsxnicmp (lpszParamBank, tszValue, _tcsxlen (lpszParamBank)))
425425 {
426426 // 是不是银行卡信息
427427 memset (tszKey, ' \0 ' , sizeof (tszKey));
428428 memset (tszValue, ' \0 ' , sizeof (tszValue));
429429 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszValue);
430430 HTTPTask_TaskGet_BankInfo (lpszClientAddr, tszValue);
431431 }
432- else if (0 == _tcsxncmp (lpszParamTranslation, tszValue, _tcsxlen (lpszParamTranslation)))
432+ else if (0 == _tcsxnicmp (lpszParamTranslation, tszValue, _tcsxlen (lpszParamTranslation)))
433433 {
434434 // 是不是翻译
435435 XCHAR tszMSGBuffer[2048 ] = {};
@@ -441,7 +441,7 @@ bool HTTPTask_TastPost_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
441441 BaseLib_String_GetKeyValue (pptszList[3 ], " =" , tszKey, tszDstBuffer);
442442 HTTPTask_TaskGet_Translation (lpszClientAddr, tszMSGBuffer, tszSrcBuffer, tszDstBuffer);
443443 }
444- else if (0 == _tcsxncmp (lpszParamLocker, tszValue, _tcsxlen (lpszParamLocker)))
444+ else if (0 == _tcsxnicmp (lpszParamLocker, tszValue, _tcsxlen (lpszParamLocker)))
445445 {
446446 // 是不是分布式锁
447447 XCHAR tszLockToken[128 ];
@@ -455,15 +455,15 @@ bool HTTPTask_TastPost_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
455455 BaseLib_String_GetKeyValue (pptszList[2 ], " =" , tszKey, tszLockType);
456456 HTTPTask_TaskGet_Locker (lpszClientAddr, _ttxoll (tszLockToken), (ENUM_XENGINE_APISERVICE_LOCKER_TYPE)_ttxoi (tszLockType));
457457 }
458- else if (0 == _tcsxncmp (lpszParamWeather, tszValue, _tcsxlen (lpszParamWeather)))
458+ else if (0 == _tcsxnicmp (lpszParamWeather, tszValue, _tcsxlen (lpszParamWeather)))
459459 {
460460 // 天气:http://127.0.0.1:5501/api?function=weather¶ms1=110101
461461 XCHAR tszIDAddr[128 ] = {};
462462
463463 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszIDAddr);
464464 HTTPTask_TaskGet_WeatherInfo (lpszClientAddr, tszIDAddr);
465465 }
466- else if (0 == _tcsxncmp (lpszParamRegion, tszValue, _tcsxlen (lpszParamRegion)))
466+ else if (0 == _tcsxnicmp (lpszParamRegion, tszValue, _tcsxlen (lpszParamRegion)))
467467 {
468468 // 地区ID:http://127.0.0.1:5501/api?function=region&type=1¶ms=省份¶ms=市区¶ms=县级
469469 int nType = 0 ;
@@ -507,15 +507,15 @@ bool HTTPTask_TastPost_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXST
507507 }
508508 }
509509 }
510- else if (0 == _tcsxncmp (lpszParamOil, tszValue, _tcsxlen (lpszParamOil)))
510+ else if (0 == _tcsxnicmp (lpszParamOil, tszValue, _tcsxlen (lpszParamOil)))
511511 {
512512 // 油价:http://127.0.0.1:5501/api?function=oil¶m=地区
513513 memset (tszValue, ' \0 ' , sizeof (tszValue));
514514
515515 BaseLib_String_GetKeyValue (pptszList[1 ], " =" , tszKey, tszValue);
516516 HTTPTask_TaskGet_Oil (lpszClientAddr, tszValue);
517517 }
518- else if ((0 == _tcsxncmp (lpszParamPhone, tszValue, _tcsxlen (lpszParamPhone))) || (0 == _tcsxncmp (lpszParamIPAddr, tszValue, _tcsxlen (lpszParamIPAddr))) || (0 == _tcsxncmp (lpszParamMacInfo, tszValue, _tcsxlen (lpszParamMacInfo))))
518+ else if ((0 == _tcsxnicmp (lpszParamPhone, tszValue, _tcsxlen (lpszParamPhone))) || (0 == _tcsxnicmp (lpszParamIPAddr, tszValue, _tcsxlen (lpszParamIPAddr))) || (0 == _tcsxnicmp (lpszParamMacInfo, tszValue, _tcsxlen (lpszParamMacInfo))))
519519 {
520520 // phone:http://127.0.0.1:5501/api?function=phone¶m=1369943
521521 // ip:http://127.0.0.1:5501/api?function=ip¶m=117.172.221.14&language=en
0 commit comments