attributes = post_params(); $res = $form->lowerLevelShop(); return $this->asJson($res); } //店铺订单 public function actionShopOrder(){ $form = new AgencyForm(); $form->attributes = post_params(); $res = $form->shopOrder(); return $this->asJson($res); } //店铺续费订单 public function actionStoreReOrder(){ $form = new AgencyForm(); $form->attributes = post_params(); $res = $form->storeReOrder(); return $this->asJson($res); } //佣金明细 public function actionCommission(){ $form = new AgencyForm(); $form->attributes = post_params(); $res = $form->commission(); return $this->asJson($res); } //代理中心配置 public function actionAgencyConfig(){ $data = Option::get('agency_config', 0, 'saas'); if (empty($data['value'])) { $data = [ 'lowerLevelShop' => "", 'lowerLevelShopIcon' => "", 'renewOrder' => "", 'renewOrderIcon' => "", 'Withdrawal' => "", 'WithdrawalIcon' => "", 'commissionDetail' => "", 'commissionDetailIcon'=> "", 'WithdrawalLog' => "", 'WithdrawalLogIcon' => "", 'shopOrder' => "", 'shopOrderIcon' => "", ]; } else { $data = json_decode($data['value'], true); } return $this->asJson([ 'code' => 0, 'msg' => 'success', 'data' => $data, ]); } }