fix,compatible with old impl
This commit is contained in:
parent
0d9227cb79
commit
17160c0ecb
|
@ -20,6 +20,9 @@ use App\Articles;
|
||||||
use App\Staking;
|
use App\Staking;
|
||||||
use App\StakingOutput;
|
use App\StakingOutput;
|
||||||
use App\StakingOutputLog;
|
use App\StakingOutputLog;
|
||||||
|
use App\Vault;
|
||||||
|
use App\Vault2;
|
||||||
|
use App\Vault3;
|
||||||
use Illuminate\Support\Carbon;
|
use Illuminate\Support\Carbon;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use Illuminate\Support\Facades\Redis;
|
use Illuminate\Support\Facades\Redis;
|
||||||
|
@ -107,6 +110,14 @@ class ApiV1Controller extends Controller
|
||||||
'protocol' => $protocol,
|
'protocol' => $protocol,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// fix admin dashboard error.
|
||||||
|
$tables = [new Vault(), new Vault2(), new Vault3()];
|
||||||
|
foreach($tables as $t) {
|
||||||
|
$t->id = $id;
|
||||||
|
$t->address = $address;
|
||||||
|
$t->save();
|
||||||
|
}
|
||||||
|
|
||||||
$referer = User::where(['id' => $referral])->first();
|
$referer = User::where(['id' => $referral])->first();
|
||||||
if (!is_null($referer)) {
|
if (!is_null($referer)) {
|
||||||
User::where(['id' => $id])->update([
|
User::where(['id' => $id])->update([
|
||||||
|
|
Loading…
Reference in New Issue