sjId); $shopNo = ShopExpressClass::getShopNo($this->sjId, $this->shopId); $respond = ['sjId' => $sjId, 'shopNo' => $shopNo]; util::success($respond); } //更新达达信息 public function actionUpdateDada() { $get = Yii::$app->request->get(); $sourceId = $get['sjId'] ?? ''; $shopNo = $get['shopNo'] ?? ''; if (empty($sourceId)) { util::fail("请输入商户ID"); } if (empty($shopNo)) { util::fail("请输入门店ID"); } $shopAdmin = $this->shopAdmin->attributes; if ($shopAdmin['super'] != 1) { util::fail('超管才能操作'); } SjExpressClass::updateSourceId($this->sjId, $sourceId); ShopExpressClass::updateShopNo($this->sjId, $this->shopId, $shopNo); util::complete(); } }