|
4#
楼主 |
发表于 2016-3-23 16:53:38
|
只看该作者
这些都有做,token也做了关联,我把代码拷贝下来,麻烦帮我看下
vuser_init()
{
web_reg_save_param("tokenid",
"LB=var token='",
"RB='",
LAST);
web_url("main.do",
"URL=http://183.63.103.90:9084/NewMerchSystem/merchManage/import/main.do",
"Resource=0",
"RecContentType=text/html",
"Referer=http://183.63.103.90:9084/NewMerchSystem/;jsessionid=BA940DB92C4894B436B053B3204893BF",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
return 0;
//提交Excel代码
lr_rendezvous("集合点");
lr_start_transaction("提交Excel事务");
Action()
{
web_submit_data("modifyOtherInfo.do",
"Action=http://183.63.103.90:9084/NewMerchSystem/merchManage/import/modifyOtherInfo.do",
"Method=POST",
"EncType=multipart/form-data",
"Referer=http://183.63.103.90:9084/NewMerchSystem/merchManage/import/main.do",
"Mode=HTML",
ITEMDATA,
"Name=modifyOtherInfoExcel", "Value=F://test//POS11.xls", "File=Yes", ENDITEM,
"Name=token", "Value={tokenid}", ENDITEM,
LAST);
lr_end_transaction("提交Excel事务",LR_AUTO);
return 0;
} |
|