feat(card): 新增非会员卡片展示限制
This commit is contained in:
@@ -154,7 +154,7 @@ class WechatPayApi(BaseClient):
|
||||
|
||||
def generate_sign(self, params: dict) -> str:
|
||||
"""生成签名"""
|
||||
plaintext = '&'.join([f'{k}={params[k]}' for k in sorted(params.keys())])
|
||||
plaintext = '&'.join([f'{k}={v}' for k, v in sorted(params.items()) if v])
|
||||
return md5(f'{plaintext}&key={self.appi_key}').upper()
|
||||
|
||||
def generate_payment_params(self, prepay_id) -> dict:
|
||||
|
||||
Reference in New Issue
Block a user