mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 02:45:33 +08:00
19 lines
573 B
PHP
19 lines
573 B
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
class omeanalysts_task{
|
||
function post_install($options){
|
||
$relateObj = app::get('omeanalysts')->model("relate");
|
||
$shopObj = app::get('ome')->model("shop");
|
||
$shopData = $shopObj->getlist('*');
|
||
foreach($shopData as $shop){
|
||
$aData = array();
|
||
$aData['relate_table'] = 'ome_shop';
|
||
$aData['relate_key'] = $shop['shop_id'];
|
||
$relateObj->insert($aData);
|
||
}
|
||
}
|
||
} |