request->get(); $classId = $get['classId'] ?? 0; $info = PxClassClass::getClassInfo($classId); PxClassClass::valid($info, $this->sjId); $customId = $data['customId'] ?? 0; if (!empty($customId)) { $custom = CustomClass::getCustomInfo($customId); CustomClass::valid($custom, $this->shopId); } $get['sjId'] = $this->sjId; $get['prePrice'] = $info['tuition']; $get['actPrice'] = $info['tuition']; $get['shopId'] = $this->shopId; $get['shopAdminId'] = $this->shopAdminId; $get['className'] = $info['name'] ?? ''; $get['classCover'] = $info['cover'] ?? ''; $get['applyTime'] = date("Y-m-d H:i:s"); $get['status'] = PxApplyClass::STATUS_UN_CONFIRM; PxApplyService::addBmPx($get); util::complete(); } //新学员 学员管理 ssh 2021.3.17 public function actionList() { $where = ['shopId' => $this->shopId, 'status' => PxApplyClass::STATUS_CONFIRM]; $respond = PxApplyClass::getApplyList($where); util::success($respond); } }