docs(pdd): 补充 pdd.goods.image.upload 参数 image 的开放平台说明
Made-with: Cursor
This commit is contained in:
parent
757e169ad5
commit
cc20c98168
|
|
@ -97,8 +97,9 @@ public class PddPopClient {
|
|||
}
|
||||
|
||||
/**
|
||||
* {@code pdd.goods.image.upload}:与官方 curl/SDK 一致,{@code Content-Type: application/x-www-form-urlencoded},
|
||||
* 表单字段含 {@code image}(图片字节的 Base64,无 {@code data:} 前缀)。
|
||||
* {@code pdd.goods.image.upload}:与官方 curl/SDK 一致,{@code Content-Type: application/x-www-form-urlencoded}。
|
||||
* <p>开放平台参数 {@code image}:类型 STRING、<b>必填</b>;支持 jpg/jpeg、png 等,<b>须为图片二进制经 Base64 编码后的字符串</b>。
|
||||
* 本方法对下载/读取得到的原始字节使用 {@link Base64#getEncoder()}(标准 Base64,无 {@code data:image/...;base64,} 前缀)。</p>
|
||||
*/
|
||||
public String invokeGoodsImageUpload(String gatewayUrl, String clientId, String clientSecret, String accessToken,
|
||||
byte[] imageBytes) throws Exception {
|
||||
|
|
|
|||
Loading…
Reference in New Issue