<?php
/**
 * Created by JetBrains PhpStorm.
 * User: user
 * Date: 15-10-20
 * Time: 下午3:34
 * To change this template use File | Settings | File Templates.
 */
set_time_limit(7200);
require_once ('config.php');
/*
$flagFile = APPLICATION_PATH . '/../data/log/customerWarehouseFee.lock';
if (@file_exists($flagFile)) {
	echo 'Anather process is running.'."\r\n";
	echo $flagFile."\r\n";
	exit();
}
//防止重复调用生成文件
$link = fopen($flagFile, 'wb');
fclose($link);
*/
define('RUNTIME', '[' . date('Y-m-d H:i:s') . '] ');
echo RUNTIME . "Starting.\r\n\r\n";

Service_CustomerWarehouseFee::autoRunCangchu2Fee();

echo "\r\n[" . date('Y-m-d H:i:s') . "] End run\r\n";
@unlink($flagFile);