Alllplmmpliedl manual JWT check and restored all driver fields68j2
This commit is contained in:
@@ -42,7 +42,7 @@ class PaymentTokenController extends Controller
|
||||
return response()->json(['status' => 'error', 'message' => 'Security Key Missing'], 500);
|
||||
}
|
||||
|
||||
$internalSecret = trim(File::get_contents($keyPath));
|
||||
$internalSecret = trim(File::get($keyPath));
|
||||
|
||||
$payload = [
|
||||
'iss' => 'Intaleq_V2',
|
||||
|
||||
@@ -34,14 +34,24 @@ class MiscController extends Controller
|
||||
}
|
||||
|
||||
/** GET /v2/misc/package-info */
|
||||
public function packageInfo(): JsonResponse
|
||||
public function packageInfo(Request $request): JsonResponse
|
||||
{
|
||||
$info = DB::connection('primary')->table('packageInfo')->orderBy('id', 'desc')->first();
|
||||
$platform = $request->input('platform', 'android');
|
||||
$appName = $request->input('appName');
|
||||
|
||||
$query = DB::connection('primary')->table('packageInfo')
|
||||
->where('platform', $platform);
|
||||
|
||||
if ($appName) {
|
||||
$query->where('appName', $appName);
|
||||
}
|
||||
|
||||
$info = $query->orderBy('id', 'desc')->first();
|
||||
|
||||
if (!$info) {
|
||||
return response()->json([
|
||||
'status' => 'failure',
|
||||
'message' => 'No package info found'
|
||||
'message' => 'No package info found for platform: ' . $platform
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user