data["active_test"] = "active"; } public function method(Request $request, $method) { return call_user_func([$this, $method], $request); } public function test4() { $a = file_get_contents(base_path() . '/private.pem'); Cache::forever("privatekey",$a); $b = file_get_contents(base_path() . '/public.pem'); Cache::forever("publickey",$b); $payload = [ 'data' => ['field1' => 1, 'field2' => 'string data'], "iss" => "http://example.org", "aud" => "http://example.com", "iat" => time(), "eat" => time() + 172800, ]; $token = JWT::encode($payload, Cache::get("privatekey"), 'RS256'); echo "Token:\n" . print_r($token, true) . "\n"; $decoded = JWT::decode($token, Cache::get("publickey"), ['RS256']); $decoded_array = (array)$decoded; echo "Decoded:\n" . print_r($decoded_array, true) . "\n"; } public function OwnerStoreFeeReportService_recordReport() { /** @var OwnerStoreFeeReportService $service */ $service = app('OwnerStoreFeeReportService'); $service->recordReport('2021-08-01'); } public function OwnerStoreOutFeeReportService_recordReport() { /** @var OwnerStoreOutFeeReportService $service */ $service = app('OwnerStoreOutFeeReportService'); $service->recordReport('2021-08-01'); } public function OwnerFeeTotalService_record() { /** @var OwnerFeeTotalService $service */ $service = app('OwnerFeeTotalService'); $service->record('2021-08-01'); } //快递 public function OwnerLogisticFeeReportService_record() { ini_set('max_execution_time', -1); /** @var OwnerLogisticFeeReportService $service */ $service = app('OwnerLogisticFeeReportService'); $service->recordReport('2021-08-01'); } public function order_packages_sync_routes_flag_init() { OrderPackage::query()->whereNotNull('transfer_status')->update(['sync_routes_flag' => true]); } public function SettlementBillReportTask() { SettlementBillReportTask::dispatchNow('2021-08-01'); } public function init_order_packages_status() { OrderPackage::query()->whereNotNull('received_at')->update(['status' => 14]); } }