|
大家好,请教个问题。今天录制个脚本,BS架构,其中有一步骤是上传照片。请见下图:
需要剪裁照片的大小。我录制到的代码如下:
web_submit_data("cut",
"Action=http://210.75.217.55/zygwy/zygwy/cut",
"Method=POST",
"RecContentType=text/html",
"Referer=http://210.75.217.55/zygwy/zygwy/upload?yhid=58142",
"Snapshot=t51.inf",
"Mode=HTTP",
ITEMDATA,
"Name=TRANSACTION_TOKEN_KEY", "Value={CorrelationParameter_1}", ENDITEM,
"Name=x1", "Value=0", ENDITEM,
"Name=y1", "Value=0", ENDITEM,
"Name=x2", "Value=400", ENDITEM,
"Name=y2", "Value=600", ENDITEM,
"Name=width", "Value=400", ENDITEM,
"Name=height", "Value=600", ENDITEM,
"Name=yhid", "Value=58142", ENDITEM,
"Name=photoName", "Value=2013-08-08-093543482.jpg", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("138004652_2013-08-08-093601836.jpg",
"URL=http://210.75.217.55/zygwy//grzp/cutfiles/zygwy/2013-08-08/09/138004652_2013-08-08-093601836.jpg?d=1375925761905",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://210.75.217.55/zygwy/zygwy/cut",
"Snapshot=t52.inf",
LAST);
web_url("138004652_2013-08-08-093601836.jpg_2",
"URL=http://210.75.217.55/zygwy//grzp/cutfiles/zygwy/2013-08-08/09/138004652_2013-08-08-093601836.jpg?d=1375925761907",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://210.75.217.55/zygwy/zygwy/cut",
"Snapshot=t53.inf",
LAST);
web_concurrent_end(NULL);
回放没报错,但照片也没有上传成功,原来的照片消失了,但新的照片没有显示出来。
请大家指教,多谢 |
|