Commit Graph

23 Commits

Author SHA1 Message Date
huangyujie 864fd47907 feat(weixin): default to product classify for category selection
Use channels.ec.product.category.classify by default before add/update to reduce class mismatch failures, and remove the category-classify-enabled toggle from config.

Made-with: Cursor
2026-04-21 16:31:13 +08:00
huangyujie 2b576a0979 chore(config): enable WEIXIN publish in local erp-api config
Switch external.sph.publish-enabled to true in application.yml for environments without Nacos so WeChat publish calls execute instead of being skipped.

Made-with: Cursor
2026-04-21 15:32:27 +08:00
huangyujie ec10c8eba8 feat(weixin): implement SPH product add/update with image upload and configurable OpenAPI endpoints
- Add WeixinShopEcHttpClient, image upload (URL + resp_type=1), and product add/update calls
- Extend ExternalSphProperties for URLs, fixed leaf cat, min head images, listing flag
- ExternalGoodsUpsertRequest: sphProductId for idempotent update path
- Align application.yml and nacos erp-api.yaml with external.sph defaults

Made-with: Cursor
2026-04-20 09:52:34 +08:00
huangyujie a4e3421a10 feat(erp-open): add Weixin publish lane and platform rename
Introduce WEIXIN platform handling for external goods upsert with dedicated sphPopAuth validation and result fields, and add a placeholder Sph publish service behind external.sph.publish-enabled. Rename EnumShopType WEI to WEIXIN and update related references to keep internal channel behavior consistent.

Made-with: Cursor
2026-04-16 14:03:53 +08:00
huangyujie d4f4c79104 feat(erp-api): 与 maindata 对齐的文件日志(logWork + logback-spring)
Made-with: Cursor
2026-03-31 16:23:01 +08:00
huangyujie 4eac7824fe feat(pdd): 二次上架走 goods.information.update,下架走 sale.status.set
- 请求带 pddGoodsId>0 时使用顶层表单调用 pdd.goods.information.update(与 goods.add 同形态)
- 移除 information-update-reshelf-enabled 配置与开关
- 业务成功以 goods_update_response.is_success 为准
- 扩展 ExternalGoodsUpsert/Delist 请求与发布/下架链路

Made-with: Cursor
2026-03-27 11:19:33 +08:00
huangyujie e2cc135ce3 feat(pdd): ISBN 规范化与校验位校验;external upsert 请求日志脱敏 pddPopAuth
Made-with: Cursor
2026-03-26 11:12:14 +08:00
huangyujie ec1af6c757 feat(pdd): 商品编辑线图片素材校验(轮播/商详/SKU)
- PddGoodsMaterialRole + PddGoodsMaterialImageValidator,规则与商详宽/高>1/3(理解A)写清注释
- 图床路径下载后校验,material-validation-enabled 可关
- 同一 URL 多角色时须同时满足各角色规则

Made-with: Cursor
2026-03-26 10:20:34 +08:00
huangyujie 757e169ad5 refactor(pdd): pdd.goods.image.upload 改为官方 urlencoded + Base64 image
- 与开放平台 curl/SDK 一致,不再 multipart
- 移除 image-upload-api-type/gateway/multipart-field 配置项

Made-with: Cursor
2026-03-26 09:34:55 +08:00
huangyujie 349dbca470 fix(pdd): 图床上传 type 默认改为 pdd.goods.image.upload
- 解决 pdd.goods.img.upload 报「接口不属于当前网关」
- 可配 image-upload-api-type / gateway-url / multipart 字段名
- 解析响应兼容 goods_image_upload_response 与 image_url

Made-with: Cursor
2026-03-26 09:29:14 +08:00
huangyujie de006a5d1d feat(pdd): 发品前 pdd.goods.img.upload 外链图转拼多多图床
- PddPopClient multipart 调用 pdd.goods.img.upload
- PddGoodsImageRehostService 收集 carousel/detail/thumb,白名单域名下载后上传并替换 URL
- ExternalPddProperties:image-upload-enabled、max-bytes、allowed/skip host 后缀
- application.yml / nacos 模板同步配置

Made-with: Cursor
2026-03-25 20:42:53 +08:00
huangyujie 412be97158 feat(pdd): 按 cat.rule 必填补全 goods_properties,拉取类目规则与 attributes/refPid 支持
Made-with: Cursor
2026-03-25 17:05:45 +08:00
huangyujie 89c239149c feat(pdd): 发品价格按建议零售价折算(七五折+单买加分),market_price 与满折配置
Made-with: Cursor
2026-03-25 16:42:34 +08:00
huangyujie e5061125a2 修改配置 2026-03-25 15:51:28 +08:00
huangyujie c666e89b8f 修改配置 2026-03-25 15:45:22 +08:00
huangyujie 47750a72a3 修改配置 2026-03-25 10:54:51 +08:00
huangyujie cce55fd98a config(erp-api): 拼多多 DEFAULT 映射 cat_id=16020、cost_template_id=303351846671360
Made-with: Cursor
2026-03-24 20:02:57 +08:00
huangyujie 931eb62022 feat(erp-api): 开启 external.pdd.publish-enabled 并补全默认映射模板;upsert 增加 PDD 配置与结果摘要日志
Made-with: Cursor
2026-03-24 19:43:51 +08:00
huangyujie 986b0ddeef feat(erp-api): 对外上下架全量请求日志开关 external.goods.log-full-request
- ExternalGoodsApiLogProperties + EnableConfigurationProperties
- upsert/delist 入口 INFO 打印完整 JSON(无脱敏)
- application.yml / nacos 模板默认开启,生产可关
- 作者: guochengyu

Made-with: Cursor
2026-03-24 14:30:37 +08:00
huangyujie 250aff82b1 修改配置 2026-03-24 13:48:06 +08:00
huangyujie 565bc976fc feat(external): 对外商品 upsert/delist、AK/SK 鉴权与拼多多发布链路
- 新增 ExternalGoodsController、ExternalGoodsAppService 及 DTO/VO
- AK/SK 过滤器与 Security 配置;GoodsAddBo.shopId、insertGoods 写 shop_id
- 移除 DeepSeekService;erp-api/bootstrap、nacos 示例与文档更新
- 作者: guochengyu

Made-with: Cursor
2026-03-23 19:22:35 +08:00
启航 de54b76829 优化 2026-02-01 11:53:13 +08:00
启航老齐 4c3ac0a357 优化项目结构 2025-12-28 16:07:44 +08:00