|
@@ -10,7 +10,7 @@ use Exception;
|
|
|
use fast\GoogleAuthenticator;
|
|
use fast\GoogleAuthenticator;
|
|
|
use fast\Asset;
|
|
use fast\Asset;
|
|
|
use fast\Common;
|
|
use fast\Common;
|
|
|
-use fast\MembershipLevel;
|
|
|
|
|
|
|
+use app\common\model\LedgerTeacChangeModel;
|
|
|
use think\Db;
|
|
use think\Db;
|
|
|
use think\exception\DbException;
|
|
use think\exception\DbException;
|
|
|
|
|
|
|
@@ -113,6 +113,7 @@ class User extends Backend
|
|
|
$wallet = (new LedgerWalletModel())->get($ids);
|
|
$wallet = (new LedgerWalletModel())->get($ids);
|
|
|
$row['token'] = $wallet['token'] ?? "-";
|
|
$row['token'] = $wallet['token'] ?? "-";
|
|
|
$row['frozen'] = $wallet['frozen'] ?? "-";
|
|
$row['frozen'] = $wallet['frozen'] ?? "-";
|
|
|
|
|
+ $row['teac'] = $wallet['teac'] ?? "-";
|
|
|
//$google=new GoogleAuthenticator();
|
|
//$google=new GoogleAuthenticator();
|
|
|
//生成验证秘钥
|
|
//生成验证秘钥
|
|
|
//$secret=$google->createSecret();
|
|
//$secret=$google->createSecret();
|
|
@@ -137,8 +138,10 @@ class User extends Backend
|
|
|
if (bccomp($newPower, 0, 6) !== 0) {
|
|
if (bccomp($newPower, 0, 6) !== 0) {
|
|
|
if (empty($params['type_id'])) {
|
|
if (empty($params['type_id'])) {
|
|
|
(new LedgerWalletModel)->changeWalletAccount($ids, Asset::TOKEN, $newPower, LedgerTokenChangeModel::System);
|
|
(new LedgerWalletModel)->changeWalletAccount($ids, Asset::TOKEN, $newPower, LedgerTokenChangeModel::System);
|
|
|
- }else{
|
|
|
|
|
|
|
+ }elseif($params['type_id'] == 1){
|
|
|
(new LedgerWalletModel)->changeWalletAccount($ids, Asset::FROZEN, $newPower, LedgerFrozenChangeModel::System);
|
|
(new LedgerWalletModel)->changeWalletAccount($ids, Asset::FROZEN, $newPower, LedgerFrozenChangeModel::System);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ (new LedgerWalletModel)->changeWalletAccount($ids, Asset::TEAC, $newPower, LedgerTeacChangeModel::System);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
// 提交事务
|
|
// 提交事务
|