Files
OMS/app/ome/lib/autotask/timer/hour.php
2025-12-28 23:13:25 +08:00

53 lines
1.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
/**
* 每小时执行任务处理类
*
* @author kamisama.xia@gmail.com
* @version 0.1
*/
class ome_autotask_timer_hour
{
public function process($params, &$error_msg=''){
@ini_set('memory_limit','1024M');
set_time_limit(0); ignore_user_abort(1);
// 每小时触发回写 在misctask中
//kernel::single('erpapi_misc_task')->minute();
// 按小时/天的数据汇总
kernel::single('eccommon_analysis_task')->analysis_hour();
kernel::single('eccommon_analysis_task')->analysis_day();
// 每小时清理48小时前未释放发货单取消人工占冻结
kernel::single('ome_delivery_freeze')->releaseStockFreeze();
// 每小时判断操作员是否锁定
kernel::single('desktop_user')->lockUser();
// 每小时拉取猫超商品信息
kernel::single('inventorydepth_shop_maochao_skus')->syncMaterial();
// 每小时获取赔付单
kernel::single('ome_compensate_record')->timeSync();
//[京东云交易]每小时定时拉取退货寄件地址
$keplerLib = kernel::single('ome_reship_kepler');
$keplerLib->getReshipAddress();
//[兼容]重试推送回传平台发货状态是"发货中"的订单
//todo最近发现回传抖音平台发货状态,矩阵没有响应结果
$orderLib = kernel::single('ome_order');
$orderLib->push_sync_delivery_confirm();
//每小时触发回写 在misctask中
//kernel::single('erpapi_misc_task')->hour();
return true;
}
}