Token校验失败,请检查确认?

发布于 7 年前作者 xiuying593597 次浏览最后编辑 7 年前来自 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;     

  } 

  }

0 回复
暂无回复