Skip to content

Instantly share code, notes, and snippets.

@fritx
Created August 9, 2014 06:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fritx/2f4b7b38288657f2e394 to your computer and use it in GitHub Desktop.
Save fritx/2f4b7b38288657f2e394 to your computer and use it in GitHub Desktop.
demo of fix of showorders.php
function agreeReturnMoneyAfterSent($id,$agree,$s){
if(confirm('确认'+$s+'?')==false){
//window.event.returnValue=false;
return;
}
$returnValue=false;
$.get("<?php echo WXPAY_REFUND_SELLER_AGREE_URL; ?>",{id:$id,flag:$agree},function(data,textStatus,jhr){
if(data=="<?php echo WX_SUCCESS_STATUS; ?>"){
alert("成功");
//$returnValue=true;
location.href = '相应的跳转路径';
}
else{
alert("微信操作失败,请稍后再试");
}
});
//window.event.returnValue=$returnValue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment