鱼C论坛

 找回密码
 立即注册
查看: 1150|回复: 1

在typhon里修改接口代码,编译后日志打印还是原接口

[复制链接]
发表于 2024-8-4 11:04:37 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
跪求大神解答

源码:
function TOnlineOrderRecordServiceImpl.GetList(OrderNo, OrderStatus,
  OrderTimeBegin, OrderTimeEnd, UserMobile, GoodsCodeOrName, DeliveryType,
  ReceiverName: String; out Data: IJSONObject): IOkMsg;
var
  APrefix,ATempStr,URL:String;
  AOKMsg:IOkMsg;
  AJson,rsp:IJSONObject;
begin

  Data:=nil;
  APrefix:='查询订单分页列表(POS)';
  ATempStr:='GetList';
  Result:=TOkMsg.Create(False,APrefix+'请求异常');

  URL:='StoreCode=' + xt_URLEncode.ParamEncode(AppOption.Get(SYS_STORECODE).AsString) ;
  if not OrderNo.IsEmpty then
    URL:=URL + '&OrderNo='+xt_URLEncode.ParamEncode(OrderNo);
  if not OrderStatus.IsEmpty then
    URL:=URL + '&OrderStatus='+xt_URLEncode.ParamEncode(OrderStatus);
  if not OrderTimeBegin.IsEmpty then
    URL:=URL + '&OrderTimeBegin='+xt_URLEncode.ParamEncode(OrderTimeBegin);
  if not OrderTimeEnd.IsEmpty then
    URL:=URL + '&OrderTimeEnd='+xt_URLEncode.ParamEncode(OrderTimeEnd);
  if not UserMobile.IsEmpty then
    URL:=URL + '&UserMobile='+xt_URLEncode.ParamEncode(UserMobile);
  if not GoodsCodeOrName.IsEmpty then
    URL:=URL + '&GoodsCodeOrName='+xt_URLEncode.ParamEncode(GoodsCodeOrName);
  if not DeliveryType.IsEmpty then
    URL:=URL + '&DeliveryType='+xt_URLEncode.ParamEncode(DeliveryType);
  if not ReceiverName.IsEmpty then
    URL:=URL + '&ReceiveUserName='+xt_URLEncode.ParamEncode(ReceiverName);

  URL:=URL+'&SkipCount=0'+
           '&MaxResultCount=50';

  AJson:=TCMJSONObject.Create;

  Messager.Debug('%s::%s请求URL...[%s]',[ATempStr,APrefix,URL]);
  AOKMsg:=self.doRequest(APrefix,'GET' ,'/str/api/StoreSaleOrder/GetPageListForPos?' + URL,AJson.ToJSONData,rsp);
  if not AOKMsg.IsOK then
  begin
    Result:=TOkMsg.Create(False,AOKMsg.GetMsg);
    exit;
  end;

  Result:=TOkMsg.Create(True,AOKMsg.GetMsg);
  Data:=rsp.OfferJSONObject('data');

end;      


日志
[2024-08-04 09:27:16.463 Debug][25020] TOnlineOrderRecordServiceImpl:GetList::查询订单分页列表(POS)请求URL...[StoreCode=101001&OrderStatus=99&OrderTimeBegin=2024%2D07%2D04%2000%3A00%3A00&OrderTimeEnd=2024%2D08%2D04%2023%3A59%3A59&SkipCount=0&MaxResultCount=50]
[2024-08-04 09:27:16.463 Debug][25020] TOnlineOrderRecordServiceImpl:--doRequest:/mall/api/Order/Pages/Pos?StoreCode=101001&OrderStatus=99&OrderTimeBegin=2024%2D07%2D04%2000%3A00%3A00&OrderTimeEnd=2024%2D08%2D04%2023%3A59%3A59&SkipCount=0&MaxResultCount=50  req:{}   
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-9-27 09:35

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表