mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-31 05:25:32 +08:00
41 lines
1.3 KiB
PHP
41 lines
1.3 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
class erpapi_logistics_matrix_meituan4bulkpurchasing_config extends erpapi_logistics_matrix_config{
|
||
|
||
/**
|
||
* 获取_query_params
|
||
* @param mixed $method method
|
||
* @param mixed $params 参数
|
||
* @return mixed 返回结果
|
||
*/
|
||
public function get_query_params($method, $params){
|
||
$shopId = $this->__channelObj->channel['shop_id'];
|
||
$shop = app::get('ome')->model('shop')->dump(array('shop_id'=>$shopId), 'node_type,node_id');
|
||
$query_params = array(
|
||
'to_node_id' => $shop['node_id'],
|
||
'node_type' => $shop['node_type'],
|
||
);
|
||
if($method == STORE_USER_TEMPLATE) {
|
||
unset($query_params['company_code']);
|
||
}
|
||
$pqp = parent::get_query_params($method, $params);
|
||
$query_params = array_merge($pqp, $query_params);
|
||
return $query_params;
|
||
}
|
||
|
||
/**
|
||
* 获取_to_node_id
|
||
* @return mixed 返回结果
|
||
*/
|
||
public function get_to_node_id()
|
||
{
|
||
$shopId = $this->__channelObj->channel['shop_id'];
|
||
$shop = app::get('ome')->model('shop')->dump(array('shop_id'=>$shopId), 'node_id');
|
||
|
||
return $shop['node_id'];
|
||
}
|
||
} |