asJson($conf); } public function actionConf(){ $store_id = get_store_id(); $conf = Adapay::conf($store_id); return $this->asJson([ 'code'=>0, 'msg'=>'ok', 'data' => $conf, ]); } public function actionConfSave(){ $store_id = get_store_id(); $conf = input_params('conf'); if(!is_array($conf)){ $conf = json_decode($conf, true); } Adapay::saveConf($store_id, $conf); return $this->asJson([ 'code'=>0, 'msg'=>'保存成功' ]); } public function actionGetReceiverSaas(){ $conf = Adapay::getReceiverSaas(); return $this->asJson([ 'code'=>0, 'msg'=>'ok', 'data' => $conf, ]); } public function actionSetReceiverSaas(){ $conf = input_params('conf'); if(!is_array($conf)){ $conf = json_decode($conf, true); } Adapay::setReceiverSaas($conf); return $this->asJson([ 'code'=>0, 'msg'=>'保存成功' ]); } public function actionGetReceiverStore(){ $store_id = get_store_id(); $conf = Adapay::getReceiverStore($store_id); return $this->asJson([ 'code'=>0, 'msg'=>'ok', 'data' => $conf, ]); } public function actionSetReceiverStore(){ $store_id = get_store_id(); $conf = input_params('conf'); if(!is_array($conf)){ $conf = json_decode($conf, true); } Adapay::setReceiverStore($store_id, $conf); return $this->asJson([ 'code'=>0, 'msg'=>'保存成功' ]); } public function actionMerchant_busi_config_query(){ $store_id = get_store_id(); $res = \app\utils\Adapay\AdapayV2::merchant_busi_config_query($store_id); return $this->asJson($res); } public function actionMerchant_busi_config(){ $store_id = get_store_id(); $conf = input_params('conf'); $res = \app\utils\Adapay\AdapayV2::merchant_busi_config($store_id, $conf); return $this->asJson($res); } }