12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?php
- define('InShopNC',true);
- define('BASE_ROOT_PATH',str_replace('\\','/',dirname(__FILE__)));
- echo BASE_ROOT_PATH."\n";
- require_once (BASE_ROOT_PATH . '/fooder.php');
- $oms_ret = '{"apiCode":"success","apiDesc":"成功","hasnext":0,"data":[{"tid":8000000000002202,"type":null,"operationStatus":0,"status":null,"errorMessge":"买家昵称为空;"}]}';
- $oms_ret = '{"apiCode":"success","apiDesc":"成功","hasnext":0,"data":[{"tid":8000000000101202,"type":"insert","operationStatus":1,"status":1,"errorMessge":""}]}';
- $result = json_decode($oms_ret,true);
- if(!empty($result) && is_array($result))
- {
- if($result['apiCode'] == 'success')
- {
- if(!empty($result['data']) && is_array($result['data']) && count($result['data']) > 0)
- {
- if(empty($result['data'][0]['status']) || $result['data'][0]['status'] != 1) {
- Log::record("PUSHOMS ERR pay_sn=> {$pay_sn}",Log::ERR);
- } else {
- Log::record("PUSHOMS SUCCESS pay_sn=> {$pay_sn}",Log::DEBUG);
- }
- }
- }
- }
- echo $argv;
- function help_out()
- {
- echo "fetch_goods:start fetch goods.\r\n";
- echo "fillgcid:start fill all goods class id.\r\n";
- echo "checkgoods:check all goods class id.\r\n";
- }
- $y = strtotime('2016-12-12 01:01:01');
- $y = urldecode('%E4%B8%AD%E9%80%9A%E5%BF%AB%E9%80%92');
- $x=new date();
- define('StartTime', microtime(true));
- define('TIMESTAMP', time());
- if(count($argv) == 1) {
- return;
- }
- $gfcgi_run = 1;
- if($gfcgi_run == 0) { //模拟请求
- $file = BASE_ROOT_PATH . '/debug_run.php';
- include $file;
- Base::mobile_init();
- Base::mobile_control();
- } elseif ($gfcgi_run == 1) {
- $file = BASE_ROOT_PATH . '/research/research_run.php';
- include $file;
- } else {
- Base::run_util();
- $file = BASE_CRONTAB_PATH . '/crawl/fetch_goods.php';
- require $file;
- }
- ?>
|