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',
这个是必须存在的