功能:完善 YumiNail 全栈修复与打包
This commit is contained in:
@@ -121,8 +121,8 @@ module.exports = {
|
||||
signedUrl: 50 * 60 * 1000
|
||||
},
|
||||
DEFAULT_AVATAR: 'https://api.dicebear.com/7.x/avataaars/svg?seed=default',
|
||||
DEFAULT_PRODUCT_IMAGE: 'https://via.placeholder.com/200x200?text=Product',
|
||||
DEFAULT_SHOP_IMAGE: 'https://via.placeholder.com/200x200?text=Shop',
|
||||
DEFAULT_PRODUCT_IMAGE: '/assets/images/default-product.png',
|
||||
DEFAULT_SHOP_IMAGE: '/assets/images/default-shop.png',
|
||||
NO_COUPON_KEY: 'NONE',
|
||||
TAB_PAGES: [
|
||||
'/pages/home/index',
|
||||
|
||||
@@ -131,10 +131,12 @@ function buildSignatureHeaders(options) {
|
||||
return headers
|
||||
}
|
||||
|
||||
const formData = options.formData
|
||||
const hasFormData = formData && Object.keys(formData).length > 0
|
||||
const contentType = String((options.header && options.header['Content-Type']) || options.contentType || 'application/json').toLowerCase()
|
||||
const payload = contentType.includes('application/json')
|
||||
const payload = contentType.includes('application/json') && !hasFormData
|
||||
? buildJsonPayload(options.data)
|
||||
: buildCanonicalParams(options.formData || options.data || options.params)
|
||||
: buildCanonicalParams(formData || options.data || options.params)
|
||||
const timestamp = String(Date.now())
|
||||
const nonce = randomNonce()
|
||||
const canonical = [
|
||||
|
||||
Reference in New Issue
Block a user