|
|
@@ -157,12 +157,20 @@ class PurchaseOrderController extends BaseController
|
|
|
{
|
|
|
|
|
|
if (getenv('YII_ENV') == 'production') {
|
|
|
+ //阿东的创始人才能查看采购单
|
|
|
if ($this->mainId == 742) {
|
|
|
$staff = $this->shopAdmin;
|
|
|
if (isset($staff['founder']) == false || $staff['founder'] != 2) {
|
|
|
util::fail('没有权限');
|
|
|
}
|
|
|
}
|
|
|
+ }else{
|
|
|
+ if ($this->mainId == 661) {
|
|
|
+ $staff = $this->shopAdmin;
|
|
|
+ if (isset($staff['founder']) == false || $staff['founder'] != 2) {
|
|
|
+ util::fail('没有权限');
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$get = Yii::$app->request->get();
|
|
|
@@ -188,12 +196,20 @@ class PurchaseOrderController extends BaseController
|
|
|
{
|
|
|
|
|
|
if (getenv('YII_ENV') == 'production') {
|
|
|
+ //阿东的创始人才能查看采购单
|
|
|
if ($this->mainId == 742) {
|
|
|
$staff = $this->shopAdmin;
|
|
|
if (isset($staff['founder']) == false || $staff['founder'] != 2) {
|
|
|
util::fail('没有权限');
|
|
|
}
|
|
|
}
|
|
|
+ }else{
|
|
|
+ if ($this->mainId == 661) {
|
|
|
+ $staff = $this->shopAdmin;
|
|
|
+ if (isset($staff['founder']) == false || $staff['founder'] != 2) {
|
|
|
+ util::fail('没有权限');
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$orderSn = Yii::$app->request->get('orderSn', '');
|