data["active_test"] = "active"; } public function method(Request $request, $method) { return call_user_func([$this, $method], $request); } public function test4() { dd(Waybill::query()->where("waybill_number","BSZX2108243260")->first()->toArray()); $payload = [ 'data' => ['field1' => 1, 'field2' => 'string data'], "iss" => "http://example.org", "aud" => "http://example.com", "iat" => time(), "eat" => time()+7200, ]; $token = JWT::encode($payload, $a, 'RS256'); echo "Token:\n" . print_r($token, true) . "\n"; $decoded = JWT::decode($token, $b, ['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'); } }