Pārlūkot izejas kodu

修改签名数据

solupro 5 gadi atpakaļ
vecāks
revīzija
cd24514b31
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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);