File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,9 @@ public function verify()
5252
5353 $ failedReason = null ;
5454
55+ // Then, Try to verify the license online
5556 try {
5657
57- // Try to verify the license online first
58-
5958 $ payload = $ this ->payload ();
6059 $ response = Http::timeout (self ::REQUEST_TIMEOUT )->post ($ this ->fetchActionPath ('validate ' ), $ payload );
6160
@@ -217,7 +216,14 @@ protected function verifyOffline()
217216
218217 $ licenseData = json_decode (File::get ($ this ->licenseKeyPath ()), true );
219218
220- return $ this ->dataVerification ($ licenseData ) ?? LicenseVerificationResult::successOffline (data: $ licenseData );
219+ if ($ dataValidationFailure = $ this ->dataVerification ($ licenseData )) {
220+ return $ dataValidationFailure ;
221+ }
222+
223+ return LicenseVerificationResult::successOffline (data: [
224+ 'success ' => true ,
225+ 'license ' => $ licenseData ,
226+ ]);
221227
222228 } catch (\Throwable $ th ) {
223229
You can’t perform that action at this time.
0 commit comments