mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 02:45:33 +08:00
63 lines
2.0 KiB
PHP
63 lines
2.0 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.
|
|
*/
|
|
/**
|
|
* 千牛 自助修改sku商户签约
|
|
* Class erpapi_shop_request_qianniu
|
|
*/
|
|
class erpapi_shop_request_qianniu extends erpapi_shop_request_abstract
|
|
{
|
|
/**
|
|
* 更新SkuContract
|
|
* @param mixed $sdf sdf
|
|
* @return mixed 返回值
|
|
*/
|
|
|
|
public function updateSkuContract($sdf)
|
|
{
|
|
$rs = array('rsp' => 'fail', 'msg' => '', 'data' => '');
|
|
|
|
if (!$sdf) {
|
|
$rs['msg'] = 'no order';
|
|
return $rs;
|
|
}
|
|
|
|
$shop_id = $sdf['shop_id'];
|
|
$shop_obj = app::get('ome')->model('shop');
|
|
$shop_info = $shop_obj->dump(['shop_id' => $shop_id]);
|
|
|
|
if (!$shop_info) {
|
|
$rs['msg'] = '没有找到商店信息';
|
|
return $rs;
|
|
}
|
|
|
|
$params = [
|
|
'app_id' => "ecos.ome",
|
|
'certi_id' => base_certificate::certi_id(),
|
|
'date' => date('Y-m-d H:i:s', time()),
|
|
'format' => "json",
|
|
'from_node_id' => base_shopnode::node_id('ome'),
|
|
"method" => "store.modifysku.open",
|
|
'to_node_id' => $this->__channelObj->channel['node_id'],
|
|
'node_type' => $shop_info['node_type'],
|
|
"v"=> "1"
|
|
];
|
|
|
|
$title = '店铺(' . $this->__channelObj->channel['name'] . ') 签约更换sku信息)';
|
|
$rs = $this->__caller->call(STORE_MODIFYSKU_OPEN, $params, [], $title, 10, $shop_id);
|
|
return $rs;
|
|
}
|
|
} |