You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
694 B

  1. <?php
  2. /*
  3. * wechat 2.0
  4. * Copyright (c) 2016 yixi wei http://zhizhuchuxing.com/
  5. * Date: 2016.7.12
  6. * Something is to pay QQ1062140302
  7. */
  8. if (ALLOW_ORIGIN)
  9. header("Access-Control-Allow-Origin:*");
  10. date_default_timezone_set('PRC');
  11. //$userid =$_COOKIE['user_id'];
  12. //$openid = $_COOKIE['open_id'];
  13. $id = isset($_POST['id'])?$_POST['id']:'0';
  14. if(!$id){
  15. echo json_encode(array('code'=>'1','info'=>'无id','list'=>'fail'));
  16. }
  17. $sql = "update wechat_customer set cancel_flag =1 where id =".$id;
  18. writeLog($sql);
  19. $rs = $pdo->query($sql);
  20. if($rs){
  21. echo json_encode(array('code'=>'0','info'=>'0','list'=>'success'));
  22. }else{
  23. echo json_encode(array('code'=>'0','info'=>'','list'=>'fail'));
  24. }