checkToken(); if ($token[ 'code' ] < 0) return $this->response($token); $no = $this->params[ 'no' ] ?? ''; $blessing_model = new Blessing(); $info = $blessing_model->getMemberCardBlessingInfo([ [ 'no', '=', $no ] ])[ 'data' ] ?? []; $transfer_model = new TransferModel(); $params = array ( 'site_id' => $this->site_id, 'member_id' => $this->member_id, 'blessing_id' => $info[ 'blessing_id' ] ?? 0 ); $result = $transfer_model->transfer($params); return $this->response($result); } public function blessingDetail() { $token = $this->checkToken(); // if ($token['code'] < 0) return $this->response($token); $no = $this->params[ 'no' ] ?? ''; $blessing_model = new Blessing(); $params = array ( 'site_id' => $this->site_id, 'no' => $no, 'member_id' => $this->member_id ); $result = $blessing_model->getBlessingDetail($params); return $this->response($result); } }