forked from yoone/API
feat: 添加产品图片URL字段并优化订单处理逻辑
添加产品实体中的图片URL字段 更新订单服务以支持更多查询参数和分页 修改数据库连接配置为生产环境 调整运费服务API基础URL 优化订单适配器中的字段映射逻辑
This commit is contained in:
parent
0ea834218d
commit
52fa7d651e
|
|
@ -574,8 +574,8 @@ export class ShopyyAdapter implements ISiteAdapter {
|
|||
}
|
||||
mapGetAllOrdersParams(params: UnifiedSearchParamsDTO) :ShopyyGetAllOrdersParams{
|
||||
|
||||
const pay_at_min = dayjs(params.after || '').valueOf().toString();
|
||||
const pay_at_max = dayjs(params.before || '').valueOf().toString();
|
||||
const pay_at_min = dayjs(params.after || '').unix().toString();
|
||||
const pay_at_max = dayjs(params.before || '').unix().toString();
|
||||
|
||||
return {
|
||||
per_page: params.per_page || 100,
|
||||
|
|
|
|||
|
|
@ -19,13 +19,12 @@ export default {
|
|||
typeorm: {
|
||||
dataSource: {
|
||||
default: {
|
||||
host: '13.212.62.127',
|
||||
port: "3306",
|
||||
host: 'localhost',
|
||||
port: "23306",
|
||||
username: 'root',
|
||||
password: 'Yoone!@.2025',
|
||||
database: 'inventory_v2',
|
||||
synchronize: true,
|
||||
logging: true,
|
||||
synchronize: true
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -80,10 +80,7 @@ export class ShopyyGetAllOrdersParams {
|
|||
* Shopyy获取所有订单参数DTO
|
||||
*/
|
||||
export class ShopyyGetAllOrdersParams {
|
||||
@ApiProperty({ description: '页码', example: 1, required: false })
|
||||
page?: number;
|
||||
|
||||
@ApiProperty({ description: '每页数量', example: 20, required: false })
|
||||
@ApiProperty({ description: '每页数量', example: 100, required: false })
|
||||
per_page?: number;
|
||||
|
||||
@ApiProperty({ description: '支付时间范围开始', example: '2023-01-01T00:00:00Z', required: false })
|
||||
|
|
@ -91,6 +88,9 @@ export class ShopyyGetAllOrdersParams {
|
|||
|
||||
@ApiProperty({ description: '支付时间范围结束', example: '2023-01-01T23:59:59Z', required: false })
|
||||
pay_at_max?: string;
|
||||
|
||||
@ApiProperty({ description: '排序字段', example: 'id', required: false })
|
||||
order_field?: string;//排序字段(默认id) id=订单ID updated_at=最后更新时间 pay_at=支付时间
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -423,7 +423,7 @@ export class FreightwavesService {
|
|||
// 设置必要的配置
|
||||
this.setConfig({
|
||||
appSecret: 'gELCHguGmdTLo!zfihfM91hae8G@9Sz23Mh6pHrt',
|
||||
apiBaseUrl: 'https://console-mock.apipost.cn/mock/0',
|
||||
apiBaseUrl: 'https://tms.freightwaves.ca',
|
||||
partner: '25072621035200000060'
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue