Selaa lähdekoodia

Merge branch 'master' of http://svn.ouj.com:3000/eos_sicbo/chat

baichun 5 vuotta sitten
vanhempi
commit
8d93941052
3 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. 2 2
      protected/models/Account.php
  2. 1 1
      protected/models/Redpack.php
  3. 1 0
      protected/models/User.php

+ 2 - 2
protected/models/Account.php

@@ -24,10 +24,10 @@ class Account extends Model {
 
     private static $arrType = [
         self::TYPE_EOS => 'EOS',
+        self::TYPE_MEETONE => 'MEETONE',
+        self::TYPE_TG => 'TG',
         self::TYPE_ETH => 'ETH',
         self::TYPE_TRON => 'TRON',
-        self::TYPE_TG => 'TG',
-        self::TYPE_MEETONE => 'MEETONE',
     ];
 
     public static function getAllType() {

+ 1 - 1
protected/models/Redpack.php

@@ -249,7 +249,7 @@ class Redpack extends Model {
             throw new Exception('log error', CODE_NORMAL_ERROR);
         }
 
-        $from = $objUserBindInfo->getUserIdBy($row['sender'], 'eos');
+        $from = $objUserBindInfo->getUserIdBy($row['sender'], $accountType);
         $eventData = [
             'type' => 'grab_redpack',
             'from' => (int) $from,

+ 1 - 0
protected/models/User.php

@@ -309,6 +309,7 @@ class User extends Singleton {
             $binds[] = $item;
         }
         $userInfo['binds'] = $binds;
+        $userInfo['cover_photo'] = awsReplaceImg($userInfo['cover_photo']);
 
         return $userInfo ?: [];
     }