|
发表于 2025-1-6 19:33:47
|
显示全部楼层
河北省沧州市
.版本 2
.支持库 spec
a1 = “https://payapp.wechatpay.cn/receiptmdmgr/receipt/create?miniprogram_version=3.15.9&remark_pic_urls=&option_list=[]&receipt_item_list=[]&account_type=1”
a2 = “&fee=” + 到文本 (到数值 (收款金额) × 100)
a3 = “&remark=” + 编码_URL编码 (编码_gb2312到utf8 (收款码自定义文本), , )
a4 = “&shop_id=” + Shop_id
a5 = “&account_id=” + Account_id
a6 = “&sid=” + sid
_局部1 = a1 + a2 + a3 + a4 + a5 + a6
_局部3 = 到文本 (编码_编码转换对象 (网页_访问 (_局部1, 0, , , , , , , , , , , , ), , , ))
_局部5 = 文本_取出中间文本 (文本_取出中间文本 (_局部3, “receipt_id”, “receipt_info”, , ), “:”, “,”, , )
调试输出 (“_局部3”, _局部3)
_局部1 = “https://payapp.wechatpay.cn/receiptmdmgr/receipt/getwxacode?miniprogram_version=3.15.9&wxacode_path_type=1” + “&receipt_id=” + _局部5 + “&account_id=” + Account_id + “&account_type=1&sid=” + sid
_局部3 = 到文本 (编码_编码转换对象 (网页_访问 (_局部1, 0, , , , , , , , , , , , ), , , ))
调试输出 (“_局部3”, _局部3)
json精易.解析 (_局部3, , ) ' 精益 json解析
.如果真 (json精易.取通用属性 (“data.qrcode”, ) ≠ “”)
局部_图片 = 编码_Base64转图片 (“data:image/jpeg;base64,” + json精易.取通用属性 (“data.qrcode”, ))
.如果真结束
我将模块整理了下!需要的是商户ID |
|