|
|
@@ -115,6 +115,13 @@ class RefundController extends BaseController
|
|
|
util::fail('超管才能操作退款');
|
|
|
}
|
|
|
|
|
|
+ //国恋只有指定人有退款权限
|
|
|
+ if ($this->mainId == 7704) {
|
|
|
+ if (in_array($this->shopAdminId, [133727, 133545]) == false) {
|
|
|
+ util::fail('没有权限');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$connection = Yii::$app->db;
|
|
|
$transaction = $connection->beginTransaction();
|
|
|
try {
|
|
|
@@ -136,7 +143,7 @@ class RefundController extends BaseController
|
|
|
if ($deadline < date("Y-m-d H:i:s")) {
|
|
|
$clear->status = 3;
|
|
|
$clear->save();
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
if (!empty($saleStr)) {
|
|
|
$current = explode(',', $saleStr);
|
|
|
$orderIds = array_merge($orderIds, $current);
|