mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-10 00:15:32 +08:00
2. 【新增】手工创建订单折扣可输入正数 3. 【优化】盘点申请单确认 4. 【修复】采购退货单模拟出库失败问题 5. 【新增】订单金额客户实付与结算金额 6. 【优化】仓库发货统计报表物料名称显示 7. 【优化】自有仓储虚拟发货逻辑 8. 【修复】基础物料分类管理问题
71 lines
2.4 KiB
PHP
71 lines
2.4 KiB
PHP
<?php
|
||
/**
|
||
* Copyright 2012-2026 ShopeX (https://www.shopex.cn)
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/
|
||
|
||
class o2o_task{
|
||
|
||
function post_install($options){
|
||
|
||
$dlyCorpLib = kernel::single('ome_interface_dlycorp');
|
||
$o2o_pickup_data = array(
|
||
'type' => 'o2o_pickup',
|
||
'name' => '门店自提',
|
||
'd_type' => 2,
|
||
'firstunit' => 0,#首重重量
|
||
'firstprice' => 0,#首重费用
|
||
'continueunit' => 1,#续重重量(注意:被除数不能为0)
|
||
'continueprice' => 0,#续重费用
|
||
);
|
||
$save_dlycorp = $dlyCorpLib->save($o2o_pickup_data);
|
||
|
||
$o2o_ship_data = array(
|
||
'type' => 'o2o_ship',
|
||
'name' => '门店配送',
|
||
'd_type' => 2,
|
||
'firstunit' => 0,#首重重量
|
||
'firstprice' => 0,#首重费用
|
||
'continueunit' => 1,#续重重量(注意:被除数不能为0)
|
||
'continueprice' => 0,#续重费用
|
||
);
|
||
$save_dlycorp = $dlyCorpLib->save($o2o_ship_data);
|
||
|
||
#自动插入线下服务端数据
|
||
$serverObj = app::get('o2o')->model('server');
|
||
$type_list = o2o_conf_server::getTypeList('wap');
|
||
|
||
if($type_list)
|
||
{
|
||
$save_data = array(
|
||
'server_bn' => 'h5wap',
|
||
'name' => $type_list['label'],
|
||
'type' => $type_list['type'],
|
||
'remote_url' => '',
|
||
'sign_key' => '',
|
||
);
|
||
$serverObj->save($save_data);
|
||
}
|
||
|
||
//初始化数据
|
||
//kernel::single('base_initial', 'o2o')->init();
|
||
}
|
||
|
||
function post_uninstall(){
|
||
$dlyCorpLib = kernel::single('ome_interface_dlycorp');
|
||
$dlyCorpLib->delete(array('type'=>array('o2o_pickup','o2o_ship'),'d_type'=>2));
|
||
}
|
||
|
||
}
|