@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.mjs
CHANGED
|
@@ -159,7 +159,9 @@ var BaseService = class {
|
|
|
159
159
|
static createFormData(data, fileKey, file) {
|
|
160
160
|
const formData = new FormData();
|
|
161
161
|
for (const key in data) {
|
|
162
|
-
|
|
162
|
+
if (data[key]) {
|
|
163
|
+
formData.append(key, data[key]);
|
|
164
|
+
}
|
|
163
165
|
}
|
|
164
166
|
if (file) {
|
|
165
167
|
formData.append(fileKey != null ? fileKey : "data", file);
|
|
@@ -1823,7 +1825,7 @@ var ProfileApi = class extends BaseService {
|
|
|
1823
1825
|
occupation: params.occupation,
|
|
1824
1826
|
remark: params.remark,
|
|
1825
1827
|
displayname: params.displayName
|
|
1826
|
-
}, params.options), "
|
|
1828
|
+
}, params.options), "data", params.profileImage),
|
|
1827
1829
|
{
|
|
1828
1830
|
headers: __spreadValues({
|
|
1829
1831
|
"Content-Type": "multipart/form-data"
|
|
@@ -2374,7 +2376,7 @@ var AddressApi = class extends BaseService {
|
|
|
2374
2376
|
province_name: params.provinceName,
|
|
2375
2377
|
subdistrict_code: params.subDistrictCode,
|
|
2376
2378
|
subdistrict_name: params.subDistrictName,
|
|
2377
|
-
zipcode: params.
|
|
2379
|
+
zipcode: params.zipcode
|
|
2378
2380
|
}, params.options),
|
|
2379
2381
|
{
|
|
2380
2382
|
headers: __spreadValues({
|