mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 19:59:21 +08:00
chore: add debug
This commit is contained in:
@@ -44,6 +44,18 @@ const usePSInfo = () => {
|
|||||||
}, [psPartnerKey, psClickId, isPSChanged, domain, hasBind])
|
}, [psPartnerKey, psClickId, isPSChanged, domain, hasBind])
|
||||||
|
|
||||||
const bind = useCallback(async () => {
|
const bind = useCallback(async () => {
|
||||||
|
// for debug
|
||||||
|
if (!hasBind)
|
||||||
|
fetch("https://cloud.dify.dev/console/api/billing/debug/data", {
|
||||||
|
method: "POST",
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
body: JSON.stringify({
|
||||||
|
type: "bind",
|
||||||
|
data: psPartnerKey ? JSON.stringify({ psPartnerKey, psClickId }) : "",
|
||||||
|
}),
|
||||||
|
})
|
||||||
if (psPartnerKey && psClickId && !hasBind) {
|
if (psPartnerKey && psClickId && !hasBind) {
|
||||||
let shouldRemoveCookie = false
|
let shouldRemoveCookie = false
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user