@bzbs/react-api-client 1.4.9 → 1.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -203,7 +203,9 @@ var BaseService = class {
|
|
|
203
203
|
static createFormData(data, fileKey, file) {
|
|
204
204
|
const formData = new FormData();
|
|
205
205
|
for (const key in data) {
|
|
206
|
-
|
|
206
|
+
if (data[key]) {
|
|
207
|
+
formData.append(key, data[key]);
|
|
208
|
+
}
|
|
207
209
|
}
|
|
208
210
|
if (file) {
|
|
209
211
|
formData.append(fileKey != null ? fileKey : "data", file);
|
|
@@ -1867,7 +1869,7 @@ var ProfileApi = class extends BaseService {
|
|
|
1867
1869
|
occupation: params.occupation,
|
|
1868
1870
|
remark: params.remark,
|
|
1869
1871
|
displayname: params.displayName
|
|
1870
|
-
}, params.options), "
|
|
1872
|
+
}, params.options), "data", params.profileImage),
|
|
1871
1873
|
{
|
|
1872
1874
|
headers: __spreadValues({
|
|
1873
1875
|
"Content-Type": "multipart/form-data"
|
|
@@ -2418,7 +2420,7 @@ var AddressApi = class extends BaseService {
|
|
|
2418
2420
|
province_name: params.provinceName,
|
|
2419
2421
|
subdistrict_code: params.subDistrictCode,
|
|
2420
2422
|
subdistrict_name: params.subDistrictName,
|
|
2421
|
-
zipcode: params.
|
|
2423
|
+
zipcode: params.zipcode
|
|
2422
2424
|
}, params.options),
|
|
2423
2425
|
{
|
|
2424
2426
|
headers: __spreadValues({
|