|
5精币
.版本 2
.子程序 功能_网页访问, 文本型, , 本命令由【精易网页调试助手】生成,请配合精易模块使用。
.局部变量 局_网址, 文本型
.局部变量 局_方式, 整数型
.局部变量 局_提交数据, 文本型
.局部变量 局_提交cookie, 文本型
.局部变量 ADD_协议头, 类_POST数据类
.局部变量 局_提交协议头, 文本型
.局部变量 局_结果, 字节集
.局部变量 局_返回, 文本型
' https://cps.kwaixiaodian.com/gateway/distribute/match/shelf/item/save
局_网址 = "https://cps.kwaixiaodian.com/gateway/distribute/match/shelf/item/save"
局_方式 = 1
' {"distributeItemId":605998808093,"relItemId":21555507111093,"saveType":"add","isReplace":0,"bizCode":"pcShelfItemSelection","statisticsInfo":{"pageUrl":"https://cps.kwaixiaodian.com/pc/promoter/selection-center/detail?distributeItemId=605998808093","refer":"","appName":"PC","terminal":"PC","commissionId":0,"commissionType":0,"ext":{"matchId":"28912436-7e05-4ec2-b590-af70d1aad521"}}}
局_提交数据 = "{”+#引号+“distributeItemId”+#引号+“:605998808093,”+#引号+“relItemId”+#引号+“:21555507111093,”+#引号+“saveType”+#引号+“:”+#引号+“add”+#引号+“,”+#引号+“isReplace”+#引号+“:0,”+#引号+“bizCode”+#引号+“:”+#引号+“pcShelfItemSelection”+#引号+“,”+#引号+“statisticsInfo”+#引号+“:{”+#引号+“pageUrl”+#引号+“:”+#引号+“https://cps.kwaixiaodian.com/pc/promoter/selection-center/detail?distributeItemId=605998808093”+#引号+“,”+#引号+“refer”+#引号+“:”+#引号+“”+#引号+“,”+#引号+“appName”+#引号+“:”+#引号+“PC”+#引号+“,”+#引号+“terminal”+#引号+“:”+#引号+“PC”+#引号+“,”+#引号+“commissionId”+#引号+“:0,”+#引号+“commissionType”+#引号+“:0,”+#引号+“ext”+#引号+“:{”+#引号+“matchId”+#引号+“:”+#引号+“28912436-7e05-4ec2-b590-af70d1aad521”+#引号+“}}}"
局_提交cookie = "did=web_pymxllnucro631u0ogddqjhb8hnk9bev; sid=kuaishou.shop.b; userId=4215617107; merchantSessionKey=1723159600287_b3368307cbd0a586836c92379cc2bbe8; merchantSellerId=4215617107; kuaishou.shop.b_st=ChJrdWFpc2hvdS5zaG9wLmIuc3QSoAHEqsTjkHcSRhxRzB2imFtEVNMZDr0lvOZVOy3bjg_WEshORGW_38uH1W17CoNg1YIAPMomcQAoHd9yjDjwkhix6FaApgo0jkhUQHaZUWr9zgirl-wn33h7Z8P6hgoM-XO-icPSm6mcv9XNsf6ut4KSX9ax2A80-64FueqKi4D8ArLyzJ1_QdPw5mL6NvweHJDRyxdYwcyMWNSed65Lmd_GGhJEwYN8fze1y97CKEMszZ1sXx4iIHy1W-rLvBJvOd_OoT7acMJA6Vq_O49EGNIKfTnCqsaFKAUwAQ; kuaishou.shop.b_ph=4de7747b23dc9f9dc18a1ea36f98b0e5e642"
ADD_协议头.添加 ("User-Agent","Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.87 Safari/537.36")
局_提交协议头 = ADD_协议头.获取协议头数据 ()
局_结果 = 网页_访问 (局_网址, 局_方式, 局_提交数据, 局_提交Cookie, , 局_提交协议头, , , , , )
局_返回 = 到文本(编码_编码转换对象(局_结果))
返回(局_返回)
调试返回没有商品id
{"result":21,"pickSuccess":false,"data":{},"pickFailMsg":"","systemCode":0,"requestId":"724230288612327981","isRepeated":0,"errorMsg":"商品id缺失"}
不知道什么问题。麻烦各位大大帮忙看下。谢谢
|
|