Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
L
library
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
stbz
library
Commits
9e528cfb
提交
9e528cfb
authored
2 年前
作者:
gukai
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/master'
上级
157a4c40
f2a07ce3
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
22 行增加
和
12 行删除
+22
-12
tm_category.go
upstream/tmNew/tm_category.go
+5
-3
tm_goods.go
upstream/tmNew/tm_goods.go
+12
-7
tm_order.go
upstream/tmNew/tm_order.go
+4
-1
upstream.go
upstream/upstream.go
+1
-1
没有找到文件。
upstream/tmNew/tm_category.go
浏览文件 @
9e528cfb
...
...
@@ -2,6 +2,7 @@ package tm
import
(
"context"
"encoding/json"
link
"github.com/alibabacloud-go/linkedmall-20220531/v2/client"
"github.com/alibabacloud-go/tea/tea"
"github.com/gogf/gf/encoding/gjson"
...
...
@@ -47,9 +48,10 @@ func (s *category) QueryMallCategoryList(ctx context.Context,item int64) (res *Q
}
log
(
ctx
,
gjson
.
New
(
item
)
.
MustToJsonString
(),
result
.
Body
,
err
)
_
=
gjson
.
NewWithOptions
(
result
.
Body
,
gjson
.
Options
{
StrNumber
:
true
,
})
.
Scan
(
&
res
)
a
,
_
:=
json
.
Marshal
(
result
.
Body
)
if
err
=
json
.
Unmarshal
([]
byte
(
a
),
&
res
);
err
!=
nil
{
return
}
return
}
type
CategoryListRes
struct
{
...
...
This diff is collapsed.
Click to expand it.
upstream/tmNew/tm_goods.go
浏览文件 @
9e528cfb
...
...
@@ -2,6 +2,7 @@ package tm
import
(
"context"
"encoding/json"
link
"github.com/alibabacloud-go/linkedmall-20220531/v2/client"
"github.com/alibabacloud-go/tea/tea"
"github.com/gogf/gf/encoding/gjson"
...
...
@@ -185,10 +186,13 @@ func (s *goodsTmNew) QueryItemDetailWithDivision(ctx context.Context,addr string
}
log
(
ctx
,
gjson
.
New
(
item
)
.
MustToJsonString
(),
result
.
Body
,
err
)
_
=
gjson
.
NewWithOptions
(
result
.
Body
,
gjson
.
Options
{
StrNumber
:
true
,
})
.
Scan
(
&
res
)
if
*
result
.
Body
.
Success
==
false
{
return
}
a
,
_
:=
json
.
Marshal
(
result
.
Body
)
if
err
=
json
.
Unmarshal
([]
byte
(
a
),
&
res
);
err
!=
nil
{
return
}
return
}
...
...
@@ -215,9 +219,10 @@ func (s *goodsTmNew) ListDistributionItem(ctx context.Context,item *ListDistribu
}
log
(
ctx
,
gjson
.
New
(
item
)
.
MustToJsonString
(),
result
.
Body
,
err
)
_
=
gjson
.
NewWithOptions
(
result
.
Body
,
gjson
.
Options
{
StrNumber
:
true
,
})
.
Scan
(
&
res
)
a
,
_
:=
json
.
Marshal
(
result
.
Body
)
if
err
=
json
.
Unmarshal
([]
byte
(
a
),
&
res
);
err
!=
nil
{
return
}
return
}
...
...
This diff is collapsed.
Click to expand it.
upstream/tmNew/tm_order.go
浏览文件 @
9e528cfb
...
...
@@ -368,7 +368,10 @@ func (s *orderTm) Create(ctx context.Context,item *OrderCreateReq) (res *OrderCr
}
log
(
ctx
,
gjson
.
New
(
item
)
.
MustToJsonString
(),
result
.
Body
,
err
)
err
=
gjson
.
New
(
result
.
Body
)
.
Scan
(
&
res
)
a
,
_
:=
json
.
Marshal
(
result
.
Body
)
if
err
=
json
.
Unmarshal
([]
byte
(
a
),
&
res
);
err
!=
nil
{
return
}
return
}
...
...
This diff is collapsed.
Click to expand it.
upstream/upstream.go
浏览文件 @
9e528cfb
...
...
@@ -122,7 +122,7 @@ func GetUpstreamName(source int) string {
case
Hdh
:
return
"会订货"
case
TmNew
:
return
"
新版天猫
"
return
"
天猫精选
"
default
:
return
"未知来源"
}
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论