Skip to content
This repository has been archived by the owner on Aug 16, 2019. It is now read-only.

Commit

Permalink
fix production server header error, change cron time
Browse files Browse the repository at this point in the history
  • Loading branch information
Asperhsu committed Sep 29, 2016
1 parent 135d9ef commit d72a429
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Asper/Service/BotRate.php
Expand Up @@ -69,7 +69,7 @@ protected function parseCSVRow(Array $row){
protected function parseResponseHeaderUpdateTime($headers){
$str = '';
foreach($headers as $header){
if( strpos($header, 'content-disposition: attachment') === false ){ continue; }
if( strpos($header, 'attachment; filename') === false ){ continue; }

$matches = [];
preg_match('/ExchangeRate@(.*).csv/', $header, $matches);
Expand Down
4 changes: 2 additions & 2 deletions cron.yaml
@@ -1,5 +1,5 @@
cron:
- description: update rate evenry 4 hour
- description: update rate evenry 1 hour
url: /update
schedule: every 4 hours from 13:00 to 17:00
schedule: every 1 hours from 9:00 to 17:00
timezone: Asia/Taipei

0 comments on commit d72a429

Please sign in to comment.