Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
yii2_fecshop
提交
bb6ca66d
Y
yii2_fecshop
项目概览
OpenDocCN
/
yii2_fecshop
通知
17
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
yii2_fecshop
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
bb6ca66d
编写于
1月 15, 2018
作者:
T
Terry
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
代码注释微调
上级
750ba7a8
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
4 deletion
+5
-4
services/Shipping.php
services/Shipping.php
+5
-4
未找到文件。
services/Shipping.php
浏览文件 @
bb6ca66d
...
...
@@ -22,12 +22,15 @@ class Shipping extends Service
public
$shippingConfig
;
public
$shippingCsvDir
;
// 存放运费csv表格的文件路径。
//public $defaultShippingMethod;
// 在init函数初始化,将shipping method的配置值加载到这个变量
protected
$_shipping_methods
;
// 是否缓存shipping method 配置数据(因为csv部分需要读取csv文件,稍微耗时一些,可以选择放到缓存里面)
protected
$_cache_shipping_methods_config
=
0
;
// 可用的shipping method,计算出来的值保存到这个类变量中。
protected
$_available_shipping
;
// 缓存key
const
CACHE_SHIPPING_METHODS_CONFIG
=
'cache_shipping_methods_config'
;
protected
$_shipping_methods
;
/**
* 1.从配置中取出来所有的shipping method
* 2.对于公式为csv的shipping method,将对应的csv文件中的配置信息取出来
...
...
@@ -72,7 +75,6 @@ class Shipping extends Service
return
$this
->
_shipping_methods
;
}
/**
* @proeprty $shipping_method 货运方式的key
* @property $shippingConfig Array (MIX),配置信息。
...
...
@@ -226,7 +228,6 @@ class Shipping extends Service
}
}
protected
$_available_shipping
;
/**
* @property $country | String 国家 如果没有国家,则传递空字符串
* @property $region | String 省市 如果没有省市,则传递空字符串
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录