소스 검색

修改签名数据

solupro 5 년 전
부모
커밋
cd24514b31
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      protected/models/Account.php

+ 1 - 0
protected/models/Account.php

@@ -280,6 +280,7 @@ class Account extends Model {
      * @throws Exception
      */
     public static function verifyEth($account, $data, $signed) {
+        $data = "Welcome to MeeChat! Decentralization Social Platform ({$data})";
         $hash = Utils::hashPersonalMessage(Utils::strToHex($data));
 
         $messageGmp       = gmp_init("0x" . $hash);