修复“更新代运营信息会导致合伙人重置”的bug

This commit is contained in:
yezian 2024-11-20 16:56:42 +08:00
parent c97a8cbca5
commit 07bcae2087
1 changed files with 6 additions and 1 deletions

View File

@ -659,7 +659,11 @@ const StreamerSpaceContent = () => {
}, },
body: JSON.stringify({ body: JSON.stringify({
zid: defaultValues.key, zid: defaultValues.key,
third_partner_mid: selectedUser, third_partner_mid:
defaultValues?.ratio?.zone_third_partner?.third_partner_account
?.mid === selectedUser
? null
: selectedUser, //midnulllist
sharing_ratio: parseInt(value.sharing_ratio, 10) / 100, sharing_ratio: parseInt(value.sharing_ratio, 10) / 100,
...base, ...base,
}), }),
@ -677,6 +681,7 @@ const StreamerSpaceContent = () => {
setDefaultValues({}); setDefaultValues({});
setIsAgencyModalOpen(false); setIsAgencyModalOpen(false);
}; };
// //
const handleDeleteAgency = async () => { const handleDeleteAgency = async () => {
try { try {