feat(distribution): 分站发布群只使用自己的二维码池
主站单独维护分站码池,池空时不再借用主站或其他分站,并去掉已停用的固定二维码入口。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -149,7 +149,6 @@ export default function SiteSettings() {
|
||||
const [awEntry, setAwEntry] = useState<HomeEntryConfig>(defaultAWEntry)
|
||||
const [coopUseMain, setCoopUseMain] = useState(true)
|
||||
const [coopEntry, setCoopEntry] = useState<HomeEntryConfig>(defaultCoopEntry)
|
||||
const [listingQrcode, setListingQrcode] = useState('')
|
||||
const [savingRatio, setSavingRatio] = useState(false)
|
||||
|
||||
// SMS config state
|
||||
@@ -226,7 +225,6 @@ export default function SiteSettings() {
|
||||
const coop = parseHomeEntry(found.cooperation_feedback_json, defaultCoopEntry)
|
||||
setCoopUseMain(coop.useMain)
|
||||
setCoopEntry(coop.value)
|
||||
setListingQrcode(found.listing_qrcode_url || '')
|
||||
|
||||
try {
|
||||
const sms = await fetchSiteSMSConfig(id)
|
||||
@@ -524,7 +522,6 @@ export default function SiteSettings() {
|
||||
aw_recycle_json: awUseMain ? '' : JSON.stringify(awEntry),
|
||||
cooperation_feedback_json: coopUseMain ? '' : JSON.stringify(coopEntry),
|
||||
storefront_text_json: storefrontTextFilled(storefrontText),
|
||||
listing_qrcode_url: listingQrcode.trim(),
|
||||
}
|
||||
const updated = await updateSiteBranding(siteID, payload)
|
||||
setCurrentSite(updated)
|
||||
@@ -994,13 +991,13 @@ export default function SiteSettings() {
|
||||
},
|
||||
{
|
||||
key: 'entries',
|
||||
label: '首页入口与客服二维码',
|
||||
label: '首页入口',
|
||||
children: (
|
||||
<Space direction="vertical" style={{ width: '100%' }} size="large">
|
||||
<Alert
|
||||
type="info"
|
||||
showIcon
|
||||
message="回收和合作入口默认继承主站。关掉继承后,只影响当前分销站首页。客服二维码用于号主发布后进群;留空时先用本站二维码池,没有再使用主站二维码池。"
|
||||
message="回收和合作入口默认继承主站。关掉继承后,只影响当前分销站首页。发布群进群码由主站在分站二维码池维护。"
|
||||
/>
|
||||
<div>
|
||||
<Typography.Text strong>AW炫彩回收</Typography.Text>
|
||||
@@ -1020,28 +1017,6 @@ export default function SiteSettings() {
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<Typography.Text strong>客服二维码</Typography.Text>
|
||||
<Space direction="vertical" style={{ width: '100%', marginTop: 8 }} size="small">
|
||||
{listingQrcode ? (
|
||||
<Image src={listingQrcode} width={160} style={{ objectFit: 'contain' }} />
|
||||
) : (
|
||||
<Typography.Text type="secondary">未配置,发布群使用主站二维码池。</Typography.Text>
|
||||
)}
|
||||
<Space>
|
||||
<Upload
|
||||
accept="image/*"
|
||||
showUploadList={false}
|
||||
beforeUpload={(file) => uploadEntryImage(file, 'support-qrcode', setListingQrcode)}
|
||||
>
|
||||
<Button icon={<PictureOutlined />}>上传二维码</Button>
|
||||
</Upload>
|
||||
<Button disabled={!listingQrcode} onClick={() => setListingQrcode('')}>
|
||||
恢复主站
|
||||
</Button>
|
||||
</Space>
|
||||
</Space>
|
||||
</div>
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user