浏览代码

修改签名数据

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);