Skip to content

Commit 21fd521

Browse files
author
jianyan74
committed
更新版本到2.4.27 具体更新内容看更新日志
1 parent 826ce2c commit 21fd521

47 files changed

Lines changed: 956 additions & 72 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

addons/RfMerchants/backend/controllers/AuthItemController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function actionAjaxEdit()
7777

7878
return $this->renderAjax($this->viewPrefix . 'auth-item/ajax-edit', [
7979
'model' => $model,
80-
'dropDownList' => Yii::$app->services->authItem->getDropDownForEdit($id),
80+
'dropDownList' => Yii::$app->services->authItem->getDropDownForEdit(AppEnum::MERCHANT, $id),
8181
]);
8282
}
8383
}

api/config/main.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
'v1/common/provinces',
8181
'v1/member/member',
8282
'v1/member/address',
83+
'v1/member/invoice',
8384
'v1/member/auth',
8485
// 版本2
8586
'v2/default', // 默认测试入口

api/controllers/ActiveController.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function behaviors()
8787
* yii\filters\auth\HttpHeaderAuth::class,
8888
*/
8989
// HttpBasicAuth::class,
90-
// HttpBearerAuth::class,
90+
HttpBearerAuth::class,
9191
HttpHeaderAuth::class,
9292
[
9393
'class' => QueryParamAuth::class,
@@ -121,6 +121,20 @@ public function behaviors()
121121
return $behaviors;
122122
}
123123

124+
/**
125+
* {@inheritdoc}
126+
*/
127+
protected function verbs()
128+
{
129+
return [
130+
'index' => ['GET', 'HEAD', 'OPTIONS'],
131+
'view' => ['GET', 'HEAD', 'OPTIONS'],
132+
'create' => ['POST', 'OPTIONS'],
133+
'update' => ['PUT', 'PATCH', 'OPTIONS'],
134+
'delete' => ['DELETE', 'OPTIONS'],
135+
];
136+
}
137+
124138
/**
125139
* 前置操作验证token有效期和记录日志和检查curd权限
126140
*

api/modules/v1/controllers/SiteController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function actionLogout()
6666
return ResultHelper::api(200, '退出成功');
6767
}
6868

69-
return ResultHelper::api(200, '退出失败');
69+
return ResultHelper::api(422, '退出失败');
7070
}
7171

7272
/**
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace api\modules\v1\controllers\member;
4+
5+
use api\controllers\UserAuthController;
6+
use common\models\member\Invoice;
7+
8+
/**
9+
* 发票管理
10+
*
11+
* Class InvoiceController
12+
* @package api\modules\v1\controllers\member
13+
* @author jianyan74 <751393839@qq.com>
14+
*/
15+
class InvoiceController extends UserAuthController
16+
{
17+
/**
18+
* @var Invoice
19+
*/
20+
public $modelClass = Invoice::class;
21+
}

backend/modules/base/views/member/_form.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use yii\widgets\ActiveForm;
44
use common\helpers\Url;
55
use common\enums\GenderEnum;
6+
use common\helpers\Html;
67

78
$actionLog = Yii::$app->services->actionLog->findByAppId(Yii::$app->id, $model['id'], 10);
89

backend/modules/common/views/action-log/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
return Yii::$app->services->backend->getUserName($model);
4141
},
4242
'filter' => false, //不显示搜索框
43+
'format' => 'raw',
4344
],
4445
'behavior',
4546
'url',

backend/modules/common/views/addons/template/controllers/BaseController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
use common\enums\AppEnum;
4+
35
echo "<?php\n";
46
?>
57

@@ -19,7 +21,7 @@ class BaseController extends AddonsController
1921
/**
2022
* @var string
2123
*/
22-
<?php if ($appID == 'merchant'){ ?>
24+
<?php if ($appID == AppEnum::MERCHANT || $appID == AppEnum::BACKEND ){ ?>
2325
// public $layout = "@addons/<?= $model->name;?>/<?= $appID ?>/views/layouts/main";
2426
<?php } else { ?>
2527
public $layout = "@addons/<?= $model->name;?>/<?= $appID ?>/views/layouts/main";

backend/modules/common/views/log/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
return Yii::$app->services->backend->getUserName($model);
5151
},
5252
'filter' => false, //不显示搜索框
53+
'format' => 'raw',
5354
],
5455
'url',
5556
[

backend/modules/common/views/menu-cate/index.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@
3131
//重新定义分页样式
3232
'tableOptions' => ['class' => 'table table-hover'],
3333
'columns' => [
34-
[
35-
'class' => 'yii\grid\SerialColumn',
36-
'visible' => true, // 不显示#
37-
],
34+
'id',
3835
[
3936
'attribute' => 'title',
4037
'value' => function ($model) {

0 commit comments

Comments
 (0)