You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
680 B
21 lines
680 B
1 year ago
|
// const pddApi = uniCloud.importObject('pdd-serve')
|
||
|
// // 查询是否备案
|
||
|
// export const checkAuthority = function(pid = '') {
|
||
|
// return new Promise((resolve, reject) => {
|
||
|
// pddApi.authority_query(pid).then(res => {
|
||
|
// console.log('备案数:', res.data.authority_query_response.bind)
|
||
|
// if (res.data.authority_query_response && res.data.authority_query_response.bind ===
|
||
|
// 0) {
|
||
|
// pddApi.authority_generate(pid).then(res => {
|
||
|
// let data = res.data.rp_promotion_url_generate_response
|
||
|
// .url_list[0]
|
||
|
// console.log('备案链接:', data);
|
||
|
// resolve(data)
|
||
|
// })
|
||
|
// } else {
|
||
|
// resolve(true)
|
||
|
// }
|
||
|
// })
|
||
|
// })
|
||
|
// }
|