コード例 #1
0
<?php

/**
* 功能: 定时同步订单数量及状态
author: zxh
* 日期: 2016/1/23 23:04
*/
error_reporting(E_ALL);
define("SYSTEM_CRONTAB_USER", "true");
//跳过所有权限验证
set_time_limit(0);
include substr(str_replace(DIRECTORY_SEPARATOR, '/', __DIR__), 0, stripos(__DIR__, 'crontab')) . "framework.php";
Core::getInstance();
global $dbConn;
$_REQUEST['account'] = isset($argv[1]) ? $argv[1] : 'geshan0728';
$data = WishOrderAct::act_wishOrderSync();
var_dump($data);