Walletyo的一些小Bug

bug问题 · Chen · 于 3年前 发布 · 1111 次阅读

文件路径:\addons\fecmall\Walletyo\services\Wallet.php

70行改:

$product_wallet_rate = $productModel['wallet_rate'] / 100;

75行改:

$giftAmount = $productBaseRowTotal * $productGiftRate * $orderCouponDiscountRate;

文件路径:\addons\fecmall\Walletyo\services\wallet\Cash.php

cashAuditAccept函数

未录入审核人账号,问题不大,懒得改

文件路径:\addons\fecmall\Walletyo\config.php

670-693行 注释模板文件配置:page

共收到 3 条回复
Fecmall#13年前 0 个赞

1.提交bug,请写清楚到底是个什么bug问题,描述清楚,这个bug导致的是什么问题

2.\addons\fecmall\Walletyo\services\Wallet.php, 这个的确是bug,已经修复

3.加入cash order,审核函数,加入审核人账号字段信息

public function cashAuditAccept($cashOrderModel)
    {
        if (!$this->isEnable()) {
            Yii::$service->helper->errors->add('wallet cash is disable, you can not use wallet cash services');
            
            return false;
        }
        $auditUserId = null;
        if (!Yii::$app->user->isGuest) {
            $auditUserId = Yii::$app->user->identity->id;
        }
        // 1.将pending的订单状态,变为审核通过 
        // 通过updateAll的结果数,来判定是否取消成功。
        $updateComules = $this->_model->updateAll(
            [
                'order_status' => $this->status_audit_accept,
                'updated_at' => time(),
                'audit_person_id' => $auditUserId,
            ],
            [
                'and',
                ['id'  => $cashOrderModel['id']],
                ['order_status' => $this->status_pending],
            ]
        );
        if (empty($updateComules)) {
            Yii::$service->helper->errors->add('cash audit accept fail');
            
            return false;
        }
        
        return true;
    }

4.你的问题:

文件路径:\addons\fecmall\Walletyo\config.php

670-693行 注释模板文件配置:page

这个不能去掉,

'viewFileConfig' => [
                                    'catalog/productinfo/managerbatchedit' => '@walletyo/app/appadmin/theme/catalog/productinfo/managerbatchedit.php',
                                 

这个是必须存在的

Chen#23年前 0 个赞

@Fecmall #1楼

作者,不好意思,我的原意只是提交些bug,想着您肯定熟悉自己的作品,帖子就没有写的详细bug导致的问题,而是直接提交了修改方法,以供下版修复。下次会稍注意下。

另:

回答下您的第4条问题:

557-565行代码,已经可以实现670-693行的代码,已经重复,不注释掉的话,反倒让557-565行代码失效,致使Walletyo应用的后台admin链接都打不开,报错提示模板找不到。。。

附上:557-565行代码

                    'page' => [
                        'childService' => [
                            'theme' => [
                                'thirdThemeDir' => [
                                    '@walletyo/app/appadmin/theme',  // 后台模板路径
                                ],
                            ],
                        ],
                    ],
Fecmall#33年前 0 个赞

明白了

这4个问题都已经解决,walletyo,已经发新版,后台应用中心在线升级即可。

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics