Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Apr 18, 2019

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

leangjia added 3 commits April 8, 2015 17:26
增加alipay模块的中文说明。
追加interface type缺漏。
打印销售订单时报alipay错:

  File "D:\20150403wangbuke-GreenOdoo-8.0-win32\GreenOdoo\source\addons\payment_alipay\models\alipay.py", line 158, in alipay_form_generate_values
    alipay_tx_values['sign'] = util.build_mysign(prestr, acquirer.alipay_partner_key, 'MD5')
  File "D:\20150403wangbuke-GreenOdoo-8.0-win32\GreenOdoo\source\addons\payment_alipay\models\util.py", line 61, in build_mysign
    return md5(prestr + key).hexdigest()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 26: ordinal not in range(128)


在以下两个文件头加入:
payment_alipay\models\alipay.py
payment_alipay\models\util.py


加入:

import sys
reload(sys)
sys.setdefaultencoding('utf8')

解决utf8问题。
@pull pull bot added the ⤵️ pull label Apr 18, 2019
@pull pull bot added the merge-conflict Resolve conflicts manually label Feb 19, 2020
添加声明
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⤵️ pull merge-conflict Resolve conflicts manually

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant