|
|
@@ -381,6 +381,21 @@ class RefundController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (getenv('YII_ENV') == 'production') {
|
|
|
+ //小向花卉采购控制
|
|
|
+ if ($this->mainId == 23390) {
|
|
|
+ if (!in_array($this->adminId, [24043, 24585, 24586, 24654])) {
|
|
|
+ util::fail('你不能售后哦');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if ($this->mainId == 644) {
|
|
|
+ if (!in_array($this->adminId, [918])) {
|
|
|
+ util::fail('你不能售后哈');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$post = Yii::$app->request->post();
|
|
|
$id = isset($post['id']) ? $post['id'] : 0;
|
|
|
$refundType = $post['refundType'] ?? 1;
|