|
|
@@ -115,6 +115,10 @@ class HbController extends BaseController
|
|
|
$adminId = $this->shopAdminId;
|
|
|
util::checkRepeatCommit($adminId, 5);
|
|
|
|
|
|
+ if (isset($this->shopAdmin->founder) == false || $this->shopAdmin->founder != 2) {
|
|
|
+ util::fail('管理员才能操作');
|
|
|
+ }
|
|
|
+
|
|
|
$duration = (int)$form->days;
|
|
|
$count = $post['count'] ?? 1;
|
|
|
$effectiveDate = $post['effectiveDate'];
|
|
|
@@ -180,6 +184,10 @@ class HbController extends BaseController
|
|
|
util::fail('不是本门店的红包');
|
|
|
}
|
|
|
|
|
|
+ if (isset($this->shopAdmin->founder) == false || $this->shopAdmin->founder != 2) {
|
|
|
+ util::fail('管理员才能操作');
|
|
|
+ }
|
|
|
+
|
|
|
$connection = Yii::$app->db;
|
|
|
$transaction = $connection->beginTransaction();
|
|
|
|