request->get(); $type = isset($get['type']) ? $get['type'] : -1; $name = isset($get['name']) ? $get['name'] : ''; $where = ['ghsId' => $this->ghsId]; switch ($type) { case 1: //已开店 $where['isOpen'] = 1; break; default: } if (!empty($name)) { if (stringUtil::isMobile($name)) { $where['mobile'] = $name; } else { $where['shopName'] = ['like', $name]; } } $list = CustomService::getCustomList($where); util::success($list); } //客户详情 shish 2021.1.8 public function actionDetail() { $get = Yii::$app->request->get(); $shopId = isset($get['shopId']) ? $get['shopId'] : -1; $ghsId = $this->ghsId; $info = CustomService::getFullInfo($ghsId, $shopId); util::success($info); } //允许月结开关 shish 2021.1.8 public function actionDebt() { $get = Yii::$app->request->get(); $debt = isset($get['debt']) ? $get['debt'] : 0; $customId = isset($get['customId']) ? $get['customId'] : 0; $custom = CustomClass::getById($customId); CustomClass::valid($custom, $this->ghsId); CustomClass::debt($custom, $debt); util::complete(); } }