|
@@ -11,6 +11,7 @@ defined('InShopNC') or exit('Access Invalid!');
|
|
|
|
|
|
require_once(BASE_ROOT_PATH . '/helper/notify_helper.php');
|
|
|
require_once(BASE_ROOT_PATH . '/helper/stat_helper.php');
|
|
|
+require_once(BASE_DATA_PATH . '/mobile/omsid.php');
|
|
|
|
|
|
|
|
|
class dateControl extends BaseCronControl
|
|
@@ -112,6 +113,19 @@ class dateControl extends BaseCronControl
|
|
|
$this->_stat_daily();
|
|
|
}
|
|
|
|
|
|
+ public function omsidOp()
|
|
|
+ {
|
|
|
+ $serials = omsid();
|
|
|
+ $mod_goods = Model('goods');
|
|
|
+ foreach ($serials as $goods_serial => $omsid)
|
|
|
+ {
|
|
|
+ $ret = $mod_goods->where(['goods_serial' => $goods_serial])->update(['oms_id' => $omsid]);
|
|
|
+ if($ret == false) {
|
|
|
+ Log::record("cannot update goods_serial = {$goods_serial}",Log::ERR);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public function _stat_daily()
|
|
|
{
|
|
|
$cur_date = new DateTime();
|