|
|
@@ -42,6 +42,11 @@ class ShopMoneyController extends BaseController
|
|
|
//取出现金 ssh 20220811
|
|
|
public function actionOut()
|
|
|
{
|
|
|
+ $staff = $this->shopAdmin;
|
|
|
+ if (isset($staff->founder) == false || $staff->founder != 2) {
|
|
|
+ util::fail('没有权限');
|
|
|
+ }
|
|
|
+
|
|
|
$get = Yii::$app->request->get();
|
|
|
$amount = $get['amount'] ?? 0;
|
|
|
if (is_numeric($amount) == false || $amount <= 0) {
|
|
|
@@ -49,7 +54,6 @@ class ShopMoneyController extends BaseController
|
|
|
}
|
|
|
$mainId = $this->mainId;
|
|
|
$staffId = $this->shopAdminId ?? 0;
|
|
|
- $staff = $this->shopAdmin;
|
|
|
$data = [];
|
|
|
$data['mainId'] = $mainId;
|
|
|
$data['sjId'] = $this->sjId;
|