This commit is contained in:
dylan 2023-03-28 20:53:05 +08:00
parent 8889e32592
commit cc97098c27
2 changed files with 5 additions and 2 deletions

View File

@ -23,4 +23,6 @@ www的那个地址抓CK登录后F12点到network不要用命令document.co
2023/3/14 正常使用 2023/3/14 正常使用
2023/3/28 修复评价内容乱码
![image](https://i.postimg.cc/NG6g4pHf/1.jpg) ![image](https://i.postimg.cc/NG6g4pHf/1.jpg)

View File

@ -15,6 +15,7 @@ import os
import random import random
import sys import sys
import time,re import time,re
import urllib.parse
try: try:
@ -326,7 +327,7 @@ def sunbw(N, opts=None):
'orderId': oid, 'orderId': oid,
'productId': pid, 'productId': pid,
'score': str(xing), # 商品几星 'score': str(xing), # 商品几星
'content': bytes(Str, encoding="gbk"), # 评价内容 'content': urllib.parse.quote(Str), # 评价内容
'imgs': imgurl + ',' + imgurl2, 'imgs': imgurl + ',' + imgurl2,
'saveStatus': 2, 'saveStatus': 2,
'anonymousFlag': 1 'anonymousFlag': 1
@ -417,7 +418,7 @@ def review(N, opts=None):
data1 = { data1 = {
'orderId': oid, 'orderId': oid,
'productId': pid, 'productId': pid,
'content': bytes(context, encoding="gbk"), 'content': urllib.parse.quote(context),
'anonymousFlag': 1, 'anonymousFlag': 1,
'score': 5 'score': 5
} }