Token校验失败,请检查确认?
发布于 5 年前 作者 xiuying59 3486 次浏览 来自 官方Issues

public function msg()

    {

        $signature = $_GET["signature"];

        $nonce = $_GET["nonce"];

        $timestamp = $_GET["timestamp"];

        $arr = array('abc',$timestamp,$nonce);

        sort($arr, SORT_STRING);

        $str = implode("",$arr);

        $str = sha1($str);

        if($str == $signature){

            return true;

        }else{     

      echo false;     

  } 

  }

回到顶部