|
|
@@ -94,6 +94,21 @@ class RefundController extends BaseController
|
|
|
util::fail('无法操作');
|
|
|
}
|
|
|
|
|
|
+ if (getenv('YII_ENV') == 'production') {
|
|
|
+ //小向花卉开单售后控制
|
|
|
+ if ($this->mainId == 23390) {
|
|
|
+ if (!in_array($this->adminId, [24043, 24585, 24586, 24654, 24115, 23960])) {
|
|
|
+ util::fail('你不能售后哦。。');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if ($this->mainId == 644) {
|
|
|
+// if (!in_array($this->adminId, [919])) {
|
|
|
+// util::fail('你不能售后哈');
|
|
|
+// }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$get = Yii::$app->request->get();
|
|
|
$id = $get['id'] ?? 0;
|
|
|
$version = $get['version'] ?? 0;
|
|
|
@@ -161,6 +176,21 @@ class RefundController extends BaseController
|
|
|
util::fail('无法操作');
|
|
|
}
|
|
|
|
|
|
+ if (getenv('YII_ENV') == 'production') {
|
|
|
+ //小向花卉开单售后控制
|
|
|
+ if ($this->mainId == 23390) {
|
|
|
+ if (!in_array($this->adminId, [24043, 24585, 24586, 24654, 24115, 23960])) {
|
|
|
+ util::fail('你不能售后哦。。');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if ($this->mainId == 644) {
|
|
|
+// if (!in_array($this->adminId, [919])) {
|
|
|
+// util::fail('你不能售后哈');
|
|
|
+// }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$post = Yii::$app->request->post();
|
|
|
$id = $post['id'] ?? 0;
|
|
|
$rejectReason = $post['rejectReason'] ?? '';
|
|
|
@@ -398,7 +428,7 @@ class RefundController extends BaseController
|
|
|
if (getenv('YII_ENV') == 'production') {
|
|
|
//小向花卉开单售后控制
|
|
|
if ($this->mainId == 23390) {
|
|
|
- if (!in_array($this->adminId, [24043, 24585, 24586, 24654, 24115])) {
|
|
|
+ if (!in_array($this->adminId, [24043, 24585, 24586, 24654, 24115, 23960])) {
|
|
|
util::fail('你不能售后哦。。');
|
|
|
}
|
|
|
}
|