asJson($conf); } public function actionConf() { $store_id = get_store_id(); $conf = Allinpay::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); } Allinpay::saveConf($store_id, $conf); return $this->asJson([ 'code' => 0, 'msg' => '保存成功' ]); } }