Jenkinsfile使用k3s构建示例

  1. 安装k3s

        官方文档一键安装

修改k3s.service配置文件,使用docker

jenkins版本:2.542.2

  1. 我们使用gitee插件

 

3.配置k3s构建

Pod template settings

4.编写Jenkinsfile (声明式)(java)(注:钉钉通知只能用在声明式里,不能用在脚本式里

pipeline{
    agent {
        kubernetes{
            cloud 'kubernetes'
            yaml '''apiVersion: "v1"
kind: "Pod"
metadata:
  namespace: "default"
spec:
  containers:
  - command:
    - "cat"
    image: "maven:3.8.5-jdk-8"
    imagePullPolicy: "IfNotPresent"
    name: "maven"
    tty: true
    volumeMounts:
    - mountPath: "/opt/maven/specialdisease"
      name: "volume-1"
      readOnly: false
    - mountPath: "/root/.docker"
      name: "volume-3"
      readOnly: false
    - mountPath: "/root/.m2"
      name: "volume-2"
      readOnly: false
    - mountPath: "/var/run/docker.sock"
      name: "volume-0"
      readOnly: false
    - mountPath: "/home/jenkins/agent"
      name: "workspace-volume"
      readOnly: false
  - command:
    - "cat"
    image: "docker:latest"
    imagePullPolicy: "IfNotPresent"
    name: "dnd"
    tty: true
    volumeMounts:
    - mountPath: "/opt/maven/specialdisease"
      name: "volume-1"
      readOnly: false
    - mountPath: "/root/.docker"
      name: "volume-3"
      readOnly: false
    - mountPath: "/root/.m2"
      name: "volume-2"
      readOnly: false
    - mountPath: "/var/run/docker.sock"
      name: "volume-0"
      readOnly: false
    - mountPath: "/home/jenkins/agent"
      name: "workspace-volume"
      readOnly: false
  restartPolicy: "Never"
  volumes:
  - hostPath:
      path: "/var/run/docker.sock"
    name: "volume-0"
  - hostPath:
      path: "/opt/maven/.m2"
    name: "volume-2"
  - hostPath:
      path: "/opt/maven/specialdisease"
    name: "volume-1"
  - emptyDir:
      medium: ""
    name: "workspace-volume"
  - hostPath:
      path: "/root/.docker"
    name: "volume-3"
'''
        }
    }
    stages {
        stage('gitee checkout') {
            steps{
                git branch: "${env.giteeBranch}", credentialsId: 'gitee-kk', url: "${env.giteeSourceRepoHttpUrl}"
                echo "giteeBranch ${env.giteeBranch}"
                echo "giteeSourceBranch ${env.giteeSourceBranch}"
                echo "giteeActionType ${env.giteeActionType}"
                echo "giteeUserName ${env.giteeUserName}"
                echo "giteeUserEmail ${env.giteeUserEmail}"
                echo "giteeSourceRepoURL ${env.giteeSourceRepoURL}"
                echo "giteeSourceRepoName ${env.giteeSourceRepoName}"
            }
        }
        stage('maven build') {
            steps {
                container('maven') {
                    script {
                        if("${env.giteeBranch}" == 'dev' && "${env.giteeActionType}" == 'PUSH'){
                            sh 'mvn -e clean deploy  --batch-mode -U -Dmaven.test.skip=true -s /opt/maven/specialdisease/settings.xml'
                        }else if("${env.giteeBranch}" == 'test' && "${env.giteeActionType}" == 'PUSH'){
                            sh 'sed -i "s/-SNAPSHOT/-Alpha/" pom.xml'
                            sh 'mvn -e clean deploy  --batch-mode -U -Dmaven.test.skip=true -s /opt/maven/specialdisease/settings.xml'
                        }else if("${env.giteeBranch}" == 'master' && "${env.giteeActionType}" == 'PUSH'){
                            sh 'sed -i "s/-SNAPSHOT/-Beta/" pom.xml'
                            sh 'mvn -e clean deploy  --batch-mode -U -Dmaven.test.skip=true -s /opt/maven/specialdisease/settings.xml'
                        }else if("${env.giteeBranch}" == 'releases' && "${env.giteeActionType}" == 'PUSH'){
                            sh 'sed -i "s/-SNAPSHOT/-RELEASES/" pom.xml'
                            sh 'mvn -e clean deploy  --batch-mode -U -Dmaven.test.skip=true -s /opt/maven/specialdisease/settings.xml'
                        }
                    }
                }
            }
        }
        stage('docker build and push') {
            steps {
                container('dnd') {
                    script {
                        if("${env.giteeBranch}" == 'dev' || "${env.giteeBranch}" == 'test' || "${env.giteeBranch}" == 'master' || "${env.giteeBranch}" == 'releases'){
                            withCredentials([usernamePassword(credentialsId: 'harbor', passwordVariable: 'password', usernameVariable: 'username')]) {
                            sh 'echo "$password" | docker login -u $username --password-stdin harbor.xxxxxx.cn'
                            sh "docker build -t harbor.xxxxxx.cn/specialdisease/${env.giteeSourceRepoName}-${env.giteeBranch}:latest ."
                            sh "docker push harbor.xxxxxx.cn/specialdisease/${env.giteeSourceRepoName}-${env.giteeBranch}:latest"
                            }
                        }
                    }
                }
            }
        }
        stage('k8s-deploy') {
            steps {
                script {
                    def remote = [:]
                    def cert
                    def run_opts
                    def run_profile
                    remote.allowAnyHosts = true
                    remote.name = "test_remote"
                    remote.host = '192.168.31.61'
                    remote.port = 22
                    cert='master-61'
                    withCredentials([usernamePassword(credentialsId: cert, passwordVariable: 'password', usernameVariable: 'userName')]){
                        remote.user = "${userName}"
                        remote.password = "${password}"
                    }
                    if("${env.giteeBranch}" == 'test'){
                        sshCommand failOnError: false, remote: remote, command: "kubectl rollout restart deploy ${env.giteeSourceRepoName} -n specialdisease-test"
                    }else if ("${env.giteeBranch}" == 'dev'){
                        sshCommand failOnError: false, remote: remote, command: "kubectl rollout restart deploy ${env.giteeSourceRepoName} -n specialdisease-dev"
                    }
                }
            }
            post {
                failure {
                    dingtalk (robot:'20271ef1-6b9e-429c-9682-ab10dda25ddf',
                    type:'TEXT',
                    text: [
                        "构建失败",
                        "仓库: ${env.giteeSourceRepoName}",
                        "触发事件: ${env.giteeActionType}",
                        "目标分支: ${env.giteeBranch}",
                        "发起人: ${env.giteeUserName}",
                        "详情:${env.giteeSourceRepoURL}"
                    ]
                    )
                }
                success {
                    dingtalk (robot:'20271ef1-6b9e-429c-9682-ab10dda25ddf',
                    type:'TEXT',
                    text: [
                        "构建成功",
                        "仓库: ${env.giteeSourceRepoName}",
                        "触发事件: ${env.giteeActionType}",
                        "目标分支: ${env.giteeBranch}",
                        "发起人: ${env.giteeUserName}",
                        "详情:${env.giteeSourceRepoURL}"
                    ]
                    )
                }
            }
        }
    }
}

5.编写Jenkinsfile (脚本式)(java)

podTemplate(containers: [
    containerTemplate(name: 'maven', image: 'maven:3.3.9-jdk-8-alpine', ttyEnabled: true, command: 'cat'),
    containerTemplate(name: 'dnd', image: 'docker:latest', ttyEnabled: true, command: 'cat')
  ],
  volumes: [
        hostPathVolume(mountPath: '/var/run/docker.sock',hostPath: '/var/run/docker.sock'),
        hostPathVolume(mountPath: '/opt/maven/specialdisease', hostPath: '/opt/maven/specialdisease'),
        hostPathVolume(mountPath: '/root/.m2', hostPath: '/opt/maven/.m2'),
        hostPathVolume(mountPath: '/root/.docker', hostPath: '/root/.docker')
    ])
    
{
    node(POD_LABEL) {
        stage('gitee checkout') {
            git branch: "${env.giteeBranch}", credentialsId: 'gitee-kk', url: "${env.giteeSourceRepoHttpUrl}"
            echo "giteeBranch ${env.giteeBranch}"
            echo "giteeSourceBranch ${env.giteeSourceBranch}"
            echo "giteeActionType ${env.giteeActionType}"
            echo "giteeUserName ${env.giteeUserName}"
            echo "giteeUserEmail ${env.giteeUserEmail}"
            echo "giteeSourceRepoURL ${env.giteeSourceRepoURL}"
            echo "giteeSourceRepoName ${env.giteeSourceRepoName}"
        }
        stage('maven build') {
            container('maven') {
                script {
                    if("${env.giteeBranch}" == 'dev' && "${env.giteeActionType}" == 'PUSH'){
                        sh 'mvn -e clean deploy  --batch-mode -U -Dmaven.test.skip=true -s /opt/maven/specialdisease/settings.xml'

                    }else if("${env.giteeBranch}" == 'test' && "${env.giteeActionType}" == 'PUSH'){
                        sh 'sed -i "s/-SNAPSHOT/-Alpha/" pom.xml'
                        sh 'mvn -e clean deploy  --batch-mode -U -Dmaven.test.skip=true -s /opt/maven/specialdisease/settings.xml'
                    }else if("${env.giteeBranch}" == 'master' && "${env.giteeActionType}" == 'PUSH'){
                        sh 'sed -i "s/-SNAPSHOT/-Beta/" pom.xml'
                        sh 'mvn -e clean deploy  --batch-mode -U -Dmaven.test.skip=true -s /opt/maven/specialdisease/settings.xml'
                    }else if("${env.giteeBranch}" == 'releases' && "${env.giteeActionType}" == 'PUSH'){
                        sh 'sed -i "s/-SNAPSHOT/-RELEASES/" pom.xml'
                        sh 'mvn -e clean deploy  --batch-mode -U -Dmaven.test.skip=true -s /opt/maven/specialdisease/settings.xml'
                    }
                }
            }
        }
        stage('docker build and push') {
            container('dnd') {
                script {
                    if("${env.giteeBranch}" == 'dev' || "${env.giteeBranch}" == 'test' || "${env.giteeBranch}" == 'master' || "${env.giteeBranch}" == 'releases'){
                        withCredentials([usernamePassword(credentialsId: 'harbor', passwordVariable: 'password', usernameVariable: 'username')]) {
                        sh 'echo "$password" | docker login -u $username --password-stdin harbor.xxxxxx.cn'
                        sh "docker build -t harbor.xxxxxx.cn/specialdisease/${env.giteeSourceRepoName}-${env.giteeBranch}:latest ."
                        sh "docker push harbor.xxxxxx.cn/specialdisease/${env.giteeSourceRepoName}-${env.giteeBranch}:latest"
                        }
                    }
                }
            }
        }
        stage('k8s-deploy') {
            script {
                def remote = [:]
                def cert
                def run_opts
                def run_profile
                remote.allowAnyHosts = true
                remote.name = "test_remote"
                remote.host = '192.168.31.61'
                remote.port = 22
                cert='master-61'
                withCredentials([usernamePassword(credentialsId: cert, passwordVariable: 'password', usernameVariable: 'userName')]){
                    remote.user = "${userName}"
                    remote.password = "${password}"
                }
                if("${env.giteeBranch}" == 'test'){
                    sshCommand failOnError: false, remote: remote, command: "kubectl rollout restart deploy ${env.giteeSourceRepoName} -n specialdisease-test"
                }else if ("${env.giteeBranch}" == 'dev'){
                    sshCommand failOnError: false, remote: remote, command: "kubectl rollout restart deploy ${env.giteeSourceRepoName} -n specialdisease-dev"
                }
            }
            post {
                failure {
                    dingtalk (robot:'20271ef1-6b9e-429c-9682-ab10dda25ddf',
                    type:'TEXT',
                    text: [
                        "构建失败",
                        //   "仓库: ${REPO_NAME}",
                        //   "触发事件: ${env.giteeActionType}",
                        //   "目标分支: ${env.giteeBranch}",
                        //   "发起人: ${env.giteeUserName}",
                        //   "详情:${env.BUILD_URL}"
                    ]
                    )
                }
                success {
                    dingtalk (robot:'20271ef1-6b9e-429c-9682-ab10dda25ddf',
                    type:'TEXT',
                    text: [
                        "构建成功",
                        //   "仓库: ${REPO_NAME}",
                        //   "触发事件: ${env.giteeActionType}",
                        //   "目标分支: ${env.giteeBranch}",
                        //   "发起人: ${env.giteeUserName}",
                        //   "详情:${env.BUILD_URL}"
                    ]
                    )
                }
            }
        }
    }
}

6.编写Jenkinsfile (声明式)(nodejs)

pipeline{
    agent {
        kubernetes{
            cloud 'kubernetes'
            yaml '''apiVersion: "v1"
kind: "Pod"
metadata:
  namespace: "default"
spec:
  containers:
  - command:
    - "cat"
    image: "node:16.17.1"
    imagePullPolicy: "IfNotPresent"
    name: "node"
    tty: true
    volumeMounts:
    - mountPath: "/root/.docker"
      name: "volume-3"
      readOnly: false
    - mountPath: "/var/run/docker.sock"
      name: "volume-0"
      readOnly: false
    - mountPath: "/home/jenkins/agent"
      name: "workspace-volume"
      readOnly: false
  - command:
    - "cat"
    image: "docker:latest"
    imagePullPolicy: "IfNotPresent"
    name: "dnd"
    tty: true
    volumeMounts:
    - mountPath: "/root/.docker"
      name: "volume-3"
      readOnly: false
    - mountPath: "/var/run/docker.sock"
      name: "volume-0"
      readOnly: false
    - mountPath: "/home/jenkins/agent"
      name: "workspace-volume"
      readOnly: false
  restartPolicy: "Never"
  volumes:
  - hostPath:
      path: "/var/run/docker.sock"
    name: "volume-0"
  - emptyDir:
      medium: ""
    name: "workspace-volume"
  - hostPath:
      path: "/root/.docker"
    name: "volume-3"
'''
        }
    }
    stages {
        stage('gitee checkout') {
            steps{
                git branch: "${env.giteeBranch}", credentialsId: 'gitee-kk', url: "${env.giteeSourceRepoHttpUrl}"
                echo "giteeBranch ${env.giteeBranch}"
                echo "giteeSourceBranch ${env.giteeSourceBranch}"
                echo "giteeActionType ${env.giteeActionType}"
                echo "giteeUserName ${env.giteeUserName}"
                echo "giteeUserEmail ${env.giteeUserEmail}"
                echo "giteeSourceRepoName ${env.giteeSourceRepoName}"
                echo "giteeSourceRepoURL ${env.giteeSourceRepoURL}"
                echo "giteeSourceRepoHttpUrl ${env.giteeSourceRepoHttpUrl}"
            }
        }
        stage('npm build') {
            steps {
                container('node') {
                    sh 'npm install'
                    script {
                        if("${env.giteeBranch}" == 'dev' && "${env.giteeActionType}" == 'PUSH'){
                            sh 'npm run sit'
                        }else if("${env.giteeBranch}" == 'test' || "${env.giteeBranch}" == 'test-drug' || "${env.giteeBranch}" == 'test-settle'){
                            sh 'npm run test'
                        }else if("${env.giteeBranch}" == 'releases' && "${env.giteeActionType}" == 'PUSH'){
                            sh 'npm run build'
                        }
                    }
                }
            }
        }
        stage('docker build and push') {
            steps {
                container('dnd') {
                    withCredentials([usernamePassword(credentialsId: 'harbor', passwordVariable: 'password', usernameVariable: 'username')]) {
                    sh 'echo "$password" | docker login -u $username --password-stdin harbor.xxxxxx.cn'
                    sh "docker build -t harbor.xxxxxx.cn/specialdisease/${env.giteeSourceRepoName}-${env.giteeBranch}:latest ."
                    sh "docker push harbor.xxxxxx.cn/specialdisease/${env.giteeSourceRepoName}-${env.giteeBranch}:latest"
                    }
                }
            }
        }
        stage('k8s-deploy') {
            steps {
                script {
                    def remote = [:]
                    def cert
                    def run_opts
                    def run_profile
                    remote.allowAnyHosts = true
                    remote.name = "test_remote"
                    remote.host = '192.168.31.61'
                    remote.port = 22
                    cert='master-61'
                    withCredentials([usernamePassword(credentialsId: cert, passwordVariable: 'password', usernameVariable: 'userName')]){
                        remote.user = "${userName}"
                        remote.password = "${password}"
                    }
                    if("${env.giteeBranch}" == 'test' || "${env.giteeBranch}" == 'test-drug' || "${env.giteeBranch}" == 'test-settle'){
                        sshCommand failOnError: false, remote: remote, command: "kubectl rollout restart deploy specialdisease-${env.giteeSourceRepoName} -n specialdisease-test"
                    }else if ("${env.giteeBranch}" == 'dev'){
                        sshCommand failOnError: false, remote: remote, command: "kubectl rollout restart deploy specialdisease-${env.giteeSourceRepoName} -n specialdisease-dev"
                    }
                }
            }
            post {
                failure {
                    dingtalk (robot:'20271ef1-6b9e-429c-9682-ab10dda25ddf',
                    type:'TEXT',
                    text: [
                        "构建失败",
                        "仓库: ${env.giteeSourceRepoName}",
                        "触发事件: ${env.giteeActionType}",
                        "目标分支: ${env.giteeBranch}",
                        "发起人: ${env.giteeUserName}",
                        "详情:${env.giteeSourceRepoURL}"
                    ]
                    )
                }
                success {
                    dingtalk (robot:'20271ef1-6b9e-429c-9682-ab10dda25ddf',
                    type:'TEXT',
                    text: [
                        "构建成功",
                        "仓库: ${env.giteeSourceRepoName}",
                        "触发事件: ${env.giteeActionType}",
                        "目标分支: ${env.giteeBranch}",
                        "发起人: ${env.giteeUserName}",
                        "详情:${env.giteeSourceRepoURL}"
                    ]
                    )
                }
            }
        }
    }
}

7.编写Jenkinsfile (脚本式)(nodejs)

podTemplate(containers: [
    containerTemplate(name: 'node', image: 'node:14', ttyEnabled: true, command: 'cat'),
    containerTemplate(name: 'dnd', image: 'docker:latest', ttyEnabled: true, command: 'cat')
  ],
  volumes: [
        hostPathVolume(mountPath: '/var/run/docker.sock',hostPath: '/var/run/docker.sock'),
        hostPathVolume(mountPath: '/root/.docker', hostPath: '/root/.docker')
    ])
    
{
    node(POD_LABEL) {
        stage('gitee checkout') {
            git branch: "${env.giteeBranch}", credentialsId: 'gitee-kk', url: "${env.giteeSourceRepoHttpUrl}"
            echo "giteeBranch ${env.giteeBranch}"
            echo "giteeSourceBranch ${env.giteeSourceBranch}"
            echo "giteeActionType ${env.giteeActionType}"
            echo "giteeUserName ${env.giteeUserName}"
            echo "giteeUserEmail ${env.giteeUserEmail}"
            echo "giteeSourceRepoName ${env.giteeSourceRepoName}"
            echo "giteeSourceRepoURL ${env.giteeSourceRepoURL}"
            echo "giteeSourceRepoHttpUrl ${env.giteeSourceRepoHttpUrl}"
        }
        stage('npm build') {
            container('node') {
                sh 'npm install -g cnpm --registry=https://registry.npmmirror.com'
                sh 'cnpm -v'
                sh 'npm install'
                script {
                    if("${env.giteeBranch}" == 'dev' && "${env.giteeActionType}" == 'PUSH'){
                        sh 'cnpm run sit'
                    }else if("${env.giteeBranch}" == 'test' && "${env.giteeActionType}" == 'PUSH'){
                        sh 'npm run test'
                    }else if("${env.giteeBranch}" == 'master' && "${env.giteeActionType}" == 'PUSH'){
                        sh 'npm run build'
                }
              }
          }
        }
        stage('docker build and push') {
            container('dnd') {
                    withCredentials([usernamePassword(credentialsId: 'harbor', passwordVariable: 'password', usernameVariable: 'username')]) {
                    sh 'echo "$password" | docker login -u $username --password-stdin harbor.xxxxxx.cn'
                    sh "docker build -t harbor.xxxxxx.cn/drug/${env.giteeSourceRepoName}-${env.giteeBranch}:latest ."
                    sh "docker push harbor.xxxxxx.cn/drug/${env.giteeSourceRepoName}-${env.giteeBranch}:latest"
                }
            }
        }
//         stage('deploy') {
//             script {
//                 def remote = [:]
//                 def cert
//                 def run_opts
//                 def run_profile
//                 remote.allowAnyHosts = true
//                 if("${env.giteeBranch}" == 'dev' && "${env.giteeActionType}" == 'PUSH'){
//                     remote.name = "dev_remote"
//                     remote.host = '192.168.31.39'
//                     remote.port = 22
//                     cert='dev-39'
//                 }else if("${env.giteeBranch}" == 'test' && "${env.giteeActionType}" == 'PUSH'){
//                     remote.name = "test_remote"
//                     remote.host = '192.168.31.40'
//                     remote.port = 22
//                     cert='dev-39'
//                 }
//                 if("${env.giteeBranch}" == 'dev' || "${env.giteeBranch}" == 'test' ){
//                     withCredentials([usernamePassword(credentialsId: cert, passwordVariable: 'password', usernameVariable: 'userName')]){
//                         remote.user = "${userName}"
//                         remote.password = "${password}"
//                     }
//                     sshCommand failOnError: false, remote: remote, command: "docker stop ${env.giteeSourceRepoName}"
//                     sshCommand failOnError: false, remote: remote, command: "docker rm ${env.giteeSourceRepoName}"
//                     sshCommand failOnError: false, remote: remote, command: "docker rmi harbor.xxxxxx.cn/drug/${env.giteeSourceRepoName}-${env.giteeBranch}"
//                     sshCommand failOnError: false, remote: remote, command: "docker run -d --name ${env.giteeSourceRepoName} -p 8082:80 harbor.xxxxxx.cn/drug/${env.giteeSourceRepoName}-${env.giteeBranch}"
//                 }
//             }
//         }
        stage('k8s-deploy') {
            script {
                def remote = [:]
                def cert
                def run_opts
                def run_profile
                remote.allowAnyHosts = true
                remote.name = "test_remote"
                remote.host = '192.168.31.61'
                remote.port = 22
                cert='master-61'
                withCredentials([usernamePassword(credentialsId: cert, passwordVariable: 'password', usernameVariable: 'userName')]){
                    remote.user = "${userName}"
                    remote.password = "${password}"
                }
                if("${env.giteeBranch}" == 'test'){
                    sshCommand failOnError: false, remote: remote, command: "kubectl rollout restart deploy drug-patient-h5 -n drug-test"
                }else if ("${env.giteeBranch}" == 'dev'){
                    sshCommand failOnError: false, remote: remote, command: "kubectl rollout restart deploy drug-patient-h5 -n drug-dev"
                }
            }
        }
    }
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
第一章介绍docker的前世今生,了 解docker的实现原理,以Django项目为例,教大家如何编写最佳的Dockerfile实现构业务镜像的制作。通过本章的学习,大家会知道docker的概念及基本操作,并学会构建自己的业务镜像,并通过抓包的方式掌握Docker最常用的bridge网络模式的通信。第二章本章学习kubernetes的架构及工作流程,重点介绍如本章学习kubernetes的架构及工作流程,重点介绍如断的滚动更新,通过服务发现来实现集群内部的服务间访问,并通过ingress- -nginx实现外部使用域名访问集群内部的服务。同时介绍基于EFK如何搭建Kubernetes集群的日志收集系统。学完本章,我们的Django demo项目已经可以运行在k8s集群中,同时我们可以使用域名进行服务的访问。第三章本章基于k8s集群部署gitlab、sonarQube、 Jenkins等工具,并把上述工具集成到Jenkins中,以Django项目为例,通过多分支流水线及Jenkinsfle实现项目代码提交到不同的仓库分支,实现自动代码扫描、单元测试、docker容器构建、k8s服务的自动部署。第四章由于公司内部项目众多,大量的项目使用同一套流程做CICD,那么势必会存在大量的重复代码,因此本章主要通过使用groovy实现Jenkins的sharedL ibrary的开发,以提取项目在CICD实践过程中的公共逻辑,提供一系列的流程的接口供公司内各项目调用,开发完成后,还是以Django的demo项目为例,进行Jenkinsfle的改造,最后仅需通过简单的Jenkinsfle的配置,即可优雅的完成CICD流程的整个过程,此方式已在大型企业内部落地应用。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值