|
|
@@ -43,6 +43,22 @@ class PurchaseController extends BaseController
|
|
|
//批量确认 ssh 20240518
|
|
|
public function actionBatchConfirm()
|
|
|
{
|
|
|
+
|
|
|
+ if (getenv('YII_ENV') == 'production') {
|
|
|
+ //小向花卉采购的结账确认,有多处,关键词ghs_cg_clear_confirm
|
|
|
+ if (in_array($this->mainId, [23390, 24516])) {
|
|
|
+ if (!in_array($this->adminId, [24655])) {
|
|
|
+ util::fail('不能操作哦');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (in_array($this->shopId, [36523])) {
|
|
|
+// if (!in_array($this->adminId, [919])) {
|
|
|
+// util::fail('不能操作哈');
|
|
|
+// }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$post = Yii::$app->request->post();
|
|
|
$str = $post['id'] ?? 0;
|
|
|
$ghsId = $post['ghsId'] ?? 0;
|