Skip to content

Commit 6ed9c10

Browse files
修复体积重和安装sql,以及更新readme信息
1 parent 7db490f commit 6ed9c10

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ appserver(手机app服务),appapi(erp,或者其他接口对接),
186186

187187
| 捐赠人 | 金额 | 时间 | 方式 | 账户 | 捐助者留言 |
188188
| --------------| ----------| ------------- | ----------- | ----------------------| ----------|
189+
|*| ¥99.99 | 2018-07-12 | 微信 | - | 作为国内的真正开源系统,真是良心之作,支持,祝愿长久发展! |
190+
| *方招 | ¥30.00 | 2018-07-10 | 支付宝 | fan***gmail.com | 感谢作者。非常不错的电商平台 |
191+
| 厦门码农网络科技有限公司 | ¥16.66 | 2018-07-04 | 支付宝 | cod***@126.com | 厦门码农支持开源,为Fecshop! |
189192
| *雷雷 | ¥800.00 | 2018-06-27 | 支付宝 | 134******22 | 支持作者,支持fecshop |
190193
|*| ¥1.00 | 2018-06-22 | 微信 | - | |
191194
| *建欣 | ¥50.00 | 2018-06-15 | 支付宝 | 593***@qq.com | 小小心意,支持fecshop的发展 |

app/appadmin/modules/Catalog/block/productinfo/Manageredit.php

-2
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,6 @@ protected function initParamType()
520520
//体积重
521521
$this->_param['volume_weight'] = Yii::$service->shipping->getVolumeWeight($this->_param['long'], $this->_param['width'], $this->_param['high']) ;
522522

523-
524-
525523
$this->_param['score'] = $this->_param['score'] ? (int) ($this->_param['score']) : 0;
526524
//status
527525
$this->_param['status'] = $this->_param['status'] ? (float) ($this->_param['status']) : 0;

migrations/mysqldb/m170228_072156_fecshop_tables.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function safeUp()
183183
', '
184184
INSERT INTO `admin_user_role` (`id`, `user_id`, `role_id`) VALUES
185185
(1, 2, 4),
186-
(2, 2, 12),
186+
(2, 2, 12);
187187
', "
188188
CREATE TABLE IF NOT EXISTS `admin_visit_log` (
189189
`id` int(15) NOT NULL AUTO_INCREMENT,

services/Shipping.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function init(){
8282
*/
8383
public function getVolumeWeight($long, $width, $high){
8484
$volume_weight = ($long * $width * $high) / $this->volumeWeightCoefficient;
85-
return Yii::$service->helper->format->number_format($volume_weight);
85+
return (float)$volume_weight;
8686
}
8787
/**
8888
* @property $long | Float ,长度,单位cm

0 commit comments

Comments
 (0)