commit
12036e6eba
|
|
@ -1 +1 @@
|
|||
5.11.50
|
||||
5.11.51
|
||||
|
|
@ -180,12 +180,12 @@ class LicenseController extends BaseController
|
|||
nlog("Ninja Server Response");
|
||||
nlog($payload);
|
||||
|
||||
if ($response->successful()) {
|
||||
if ($response->successful() && is_array($payload)) {
|
||||
|
||||
$account = auth()->user()->account;
|
||||
|
||||
$account->plan_term = Account::PLAN_TERM_YEARLY;
|
||||
$account->plan_expires = Carbon::parse($payload['expires'])->addYear()->format('Y-m-d');
|
||||
$account->plan_expires = Carbon::parse($payload['expires'])->format('Y-m-d');
|
||||
$account->plan = Account::PLAN_WHITE_LABEL;
|
||||
$account->save();
|
||||
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ return [
|
|||
'require_https' => env('REQUIRE_HTTPS', true),
|
||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
||||
'app_version' => env('APP_VERSION', '5.11.50'),
|
||||
'app_tag' => env('APP_TAG', '5.11.50'),
|
||||
'app_version' => env('APP_VERSION', '5.11.51'),
|
||||
'app_tag' => env('APP_TAG', '5.11.51'),
|
||||
'minimum_client_version' => '5.0.16',
|
||||
'terms_version' => '1.0.1',
|
||||
'api_secret' => env('API_SECRET', false),
|
||||
|
|
|
|||
Loading…
Reference in New Issue