Commit 0d2f60f7 by renyizhao

商品可永久 newapi登录修改

parent 17beaa7b
[INFO] Making this build non-interactive, because CI detected. Disable this detection by adding --force-interactive.
[INFO] Detected CI system: 'Generic': Environment variable CI is set and its value is not "false". Disable this detection by removing that variable or by setting it to "false"
[WARNING] Unable to find the root directory. Create a .mvn directory in the root directory or add the root="true" attribute on the root project's model to identify it.
[INFO] Scanning for projects...
[WARNING]
[WARNING] 96 problems were encountered while building the effective model for 'com.luhu:computility-dependencies:pom:2.6.0-jdk8-SNAPSHOT' (use -e to see details)
[WARNING]
[WARNING] 1 problem was encountered while building the effective model for 'com.luhu:computility-spring-boot-starter-web:jar:2.6.0-jdk8-SNAPSHOT' (use -e to see details)
[WARNING]
[WARNING] Total model problems reported: 97
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] computility [pom]
[INFO] computility-framework [pom]
[INFO] computility-common [jar]
[INFO] computility-spring-boot-starter-web [jar]
[INFO] computility-spring-boot-starter-mybatis [jar]
[INFO] computility-spring-boot-starter-redis [jar]
[INFO] computility-spring-boot-starter-security [jar]
[INFO] computility-spring-boot-starter-mq [jar]
[INFO] computility-spring-boot-starter-job [jar]
[INFO] computility-spring-boot-starter-test [jar]
[INFO] computility-spring-boot-starter-biz-tenant [jar]
[INFO] computility-spring-boot-starter-websocket [jar]
[INFO] computility-spring-boot-starter-monitor [jar]
[INFO] computility-module-apihub [pom]
[INFO] computility-module-apihub-api [jar]
[INFO] computility-spring-boot-starter-biz-ip [jar]
[INFO] computility-spring-boot-starter-excel [jar]
[INFO] computility-spring-boot-starter-biz-data-permission [jar]
[INFO] computility-module-infra [jar]
[INFO] computility-module-system [jar]
[INFO] computility-module-compute [pom]
[INFO] computility-module-compute-api [jar]
[INFO] computility-module-pay [jar]
[INFO] computility-module-member [jar]
[INFO] computility-module-mall [pom]
[INFO] computility-module-trade-api [jar]
[INFO] computility-module-biz [pom]
[INFO] computility-module-biz-api [jar]
[INFO] computility-module-apihub-biz [jar]
[INFO]
[INFO] ------------------------< com.luhu:computility >------------------------
[INFO] Building computility 2.6.0-jdk8-SNAPSHOT [11/39]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility ---
[INFO] Generating flattened POM of project com.luhu:computility:pom:2.6.0-jdk8-SNAPSHOT...
[INFO] Copying com.luhu:computility:pom:2.6.0-jdk8-SNAPSHOT to project local repository
[INFO] Copying com.luhu:computility:pom:consumer:2.6.0-jdk8-SNAPSHOT to project local repository
[INFO]
[INFO] -------------------< com.luhu:computility-framework >-------------------
[INFO] Building computility-framework 2.6.0-jdk8-SNAPSHOT [12/39]
[INFO] from computility-framework\pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-framework ---
[INFO] Generating flattened POM of project com.luhu:computility-framework:pom:2.6.0-jdk8-SNAPSHOT...
[INFO] Copying com.luhu:computility-framework:pom:2.6.0-jdk8-SNAPSHOT to project local repository
[INFO] Copying com.luhu:computility-framework:pom:consumer:2.6.0-jdk8-SNAPSHOT to project local repository
[INFO]
[INFO] --------------------< com.luhu:computility-common >---------------------
[INFO] Building computility-common 2.6.0-jdk8-SNAPSHOT [13/39]
[INFO] from computility-framework\computility-common\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-common ---
[INFO] skip non existing resourceDirectory C:\work\code\puhui\api\computility-framework\computility-common\src\main\resources
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-common ---
[INFO] Generating flattened POM of project com.luhu:computility-common:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-common ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] ------------< com.luhu:computility-spring-boot-starter-web >------------
[INFO] Building computility-spring-boot-starter-web 2.6.0-jdk8-SNAPSHOT [14/39]
[INFO] from computility-framework\computility-spring-boot-starter-web\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-spring-boot-starter-web ---
[INFO] Copying 2 resources from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-spring-boot-starter-web ---
[INFO] Generating flattened POM of project com.luhu:computility-spring-boot-starter-web:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-spring-boot-starter-web ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] ----------< com.luhu:computility-spring-boot-starter-mybatis >----------
[INFO] Building computility-spring-boot-starter-mybatis 2.6.0-jdk8-SNAPSHOT [15/39]
[INFO] from computility-framework\computility-spring-boot-starter-mybatis\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[WARNING] 18 problems were encountered while building the effective model for 'com.baomidou:dynamic-datasource-spring-boot-starter:jar:4.3.1' during dependency collection step for project (use -X to see details)
[WARNING] 18 problems were encountered while building the effective model for 'com.baomidou:dynamic-datasource-spring-boot-common:jar:4.3.1' during dependency collection step for project (use -X to see details)
[WARNING] 18 problems were encountered while building the effective model for 'com.baomidou:dynamic-datasource-spring:jar:4.3.1' during dependency collection step for project (use -X to see details)
[WARNING] 18 problems were encountered while building the effective model for 'com.baomidou:dynamic-datasource-creator:jar:4.3.1' during dependency collection step for project (use -X to see details)
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-spring-boot-starter-mybatis ---
[INFO] Copying 2 resources from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-spring-boot-starter-mybatis ---
[INFO] Generating flattened POM of project com.luhu:computility-spring-boot-starter-mybatis:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-spring-boot-starter-mybatis ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] -----------< com.luhu:computility-spring-boot-starter-redis >-----------
[INFO] Building computility-spring-boot-starter-redis 2.6.0-jdk8-SNAPSHOT [16/39]
[INFO] from computility-framework\computility-spring-boot-starter-redis\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[WARNING] 104 problems were encountered while building the effective model for 'org.redisson:redisson-spring-boot-starter:jar:3.41.0' during dependency collection step for project (use -X to see details)
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-spring-boot-starter-redis ---
[INFO] Copying 1 resource from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-spring-boot-starter-redis ---
[INFO] Generating flattened POM of project com.luhu:computility-spring-boot-starter-redis:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-spring-boot-starter-redis ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] ---------< com.luhu:computility-spring-boot-starter-security >----------
[INFO] Building computility-spring-boot-starter-security 2.6.0-jdk8-SNAPSHOT [17/39]
[INFO] from computility-framework\computility-spring-boot-starter-security\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-spring-boot-starter-security ---
[INFO] Copying 1 resource from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-spring-boot-starter-security ---
[INFO] Generating flattened POM of project com.luhu:computility-spring-boot-starter-security:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-spring-boot-starter-security ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] ------------< com.luhu:computility-spring-boot-starter-mq >-------------
[INFO] Building computility-spring-boot-starter-mq 2.6.0-jdk8-SNAPSHOT [18/39]
[INFO] from computility-framework\computility-spring-boot-starter-mq\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[WARNING] 1 problem was encountered while building the effective model for 'org.javassist:javassist:jar:3.20.0-GA' during dependency collection step for project (use -X to see details)
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-spring-boot-starter-mq ---
[INFO] Copying 1 resource from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-spring-boot-starter-mq ---
[INFO] Generating flattened POM of project com.luhu:computility-spring-boot-starter-mq:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-spring-boot-starter-mq ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] ------------< com.luhu:computility-spring-boot-starter-job >------------
[INFO] Building computility-spring-boot-starter-job 2.6.0-jdk8-SNAPSHOT [19/39]
[INFO] from computility-framework\computility-spring-boot-starter-job\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-spring-boot-starter-job ---
[INFO] Copying 1 resource from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-spring-boot-starter-job ---
[INFO] Generating flattened POM of project com.luhu:computility-spring-boot-starter-job:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-spring-boot-starter-job ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] -----------< com.luhu:computility-spring-boot-starter-test >------------
[INFO] Building computility-spring-boot-starter-test 2.6.0-jdk8-SNAPSHOT [20/39]
[INFO] from computility-framework\computility-spring-boot-starter-test\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-spring-boot-starter-test ---
[INFO] skip non existing resourceDirectory C:\work\code\puhui\api\computility-framework\computility-spring-boot-starter-test\src\main\resources
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-spring-boot-starter-test ---
[INFO] Generating flattened POM of project com.luhu:computility-spring-boot-starter-test:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-spring-boot-starter-test ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] --------< com.luhu:computility-spring-boot-starter-biz-tenant >---------
[INFO] Building computility-spring-boot-starter-biz-tenant 2.6.0-jdk8-SNAPSHOT [21/39]
[INFO] from computility-framework\computility-spring-boot-starter-biz-tenant\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-spring-boot-starter-biz-tenant ---
[INFO] Copying 2 resources from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-spring-boot-starter-biz-tenant ---
[INFO] Generating flattened POM of project com.luhu:computility-spring-boot-starter-biz-tenant:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-spring-boot-starter-biz-tenant ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] ---------< com.luhu:computility-spring-boot-starter-websocket >---------
[INFO] Building computility-spring-boot-starter-websocket 2.6.0-jdk8-SNAPSHOT [22/39]
[INFO] from computility-framework\computility-spring-boot-starter-websocket\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-spring-boot-starter-websocket ---
[INFO] Copying 1 resource from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-spring-boot-starter-websocket ---
[INFO] Generating flattened POM of project com.luhu:computility-spring-boot-starter-websocket:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-spring-boot-starter-websocket ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] ----------< com.luhu:computility-spring-boot-starter-monitor >----------
[INFO] Building computility-spring-boot-starter-monitor 2.6.0-jdk8-SNAPSHOT [23/39]
[INFO] from computility-framework\computility-spring-boot-starter-monitor\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-spring-boot-starter-monitor ---
[INFO] Copying 1 resource from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-spring-boot-starter-monitor ---
[INFO] Generating flattened POM of project com.luhu:computility-spring-boot-starter-monitor:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-spring-boot-starter-monitor ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] -----------------< com.luhu:computility-module-apihub >-----------------
[INFO] Building computility-module-apihub 2.6.0-jdk8-SNAPSHOT [24/39]
[INFO] from computility-module-apihub\pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-module-apihub ---
[INFO] Generating flattened POM of project com.luhu:computility-module-apihub:pom:2.6.0-jdk8-SNAPSHOT...
[INFO] Copying com.luhu:computility-module-apihub:pom:2.6.0-jdk8-SNAPSHOT to project local repository
[INFO] Copying com.luhu:computility-module-apihub:pom:consumer:2.6.0-jdk8-SNAPSHOT to project local repository
[INFO]
[INFO] ---------------< com.luhu:computility-module-apihub-api >---------------
[INFO] Building computility-module-apihub-api 2.6.0-jdk8-SNAPSHOT [25/39]
[INFO] from computility-module-apihub\computility-module-apihub-api\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-module-apihub-api ---
[INFO] skip non existing resourceDirectory C:\work\code\puhui\api\computility-module-apihub\computility-module-apihub-api\src\main\resources
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-module-apihub-api ---
[INFO] Generating flattened POM of project com.luhu:computility-module-apihub-api:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-module-apihub-api ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 33 source files with javac [debug target 1.8] to target\classes
[WARNING] δ�� -source 8 һ������������·��
[INFO]
[INFO] ----------< com.luhu:computility-spring-boot-starter-biz-ip >-----------
[INFO] Building computility-spring-boot-starter-biz-ip 2.6.0-jdk8-SNAPSHOT [26/39]
[INFO] from computility-framework\computility-spring-boot-starter-biz-ip\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-spring-boot-starter-biz-ip ---
[INFO] Copying 2 resources from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-spring-boot-starter-biz-ip ---
[INFO] Generating flattened POM of project com.luhu:computility-spring-boot-starter-biz-ip:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-spring-boot-starter-biz-ip ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] -----------< com.luhu:computility-spring-boot-starter-excel >-----------
[INFO] Building computility-spring-boot-starter-excel 2.6.0-jdk8-SNAPSHOT [27/39]
[INFO] from computility-framework\computility-spring-boot-starter-excel\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-spring-boot-starter-excel ---
[INFO] Copying 1 resource from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-spring-boot-starter-excel ---
[INFO] Generating flattened POM of project com.luhu:computility-spring-boot-starter-excel:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-spring-boot-starter-excel ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] ----< com.luhu:computility-spring-boot-starter-biz-data-permission >----
[INFO] Building computility-spring-boot-starter-biz-data-permission 2.6.0-jdk8-SNAPSHOT [28/39]
[INFO] from computility-framework\computility-spring-boot-starter-biz-data-permission\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-spring-boot-starter-biz-data-permission ---
[INFO] Copying 1 resource from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-spring-boot-starter-biz-data-permission ---
[INFO] Generating flattened POM of project com.luhu:computility-spring-boot-starter-biz-data-permission:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-spring-boot-starter-biz-data-permission ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] -----------------< com.luhu:computility-module-infra >------------------
[INFO] Building computility-module-infra 2.6.0-jdk8-SNAPSHOT [29/39]
[INFO] from computility-module-infra\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-module-infra ---
[INFO] Copying 71 resources from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-module-infra ---
[INFO] Generating flattened POM of project com.luhu:computility-module-infra:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-module-infra ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] -----------------< com.luhu:computility-module-system >-----------------
[INFO] Building computility-module-system 2.6.0-jdk8-SNAPSHOT [30/39]
[INFO] from computility-module-system\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-module-system ---
[INFO] Copying 36 resources from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-module-system ---
[INFO] Generating flattened POM of project com.luhu:computility-module-system:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-module-system ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] ----------------< com.luhu:computility-module-compute >-----------------
[INFO] Building computility-module-compute 2.6.0-jdk8-SNAPSHOT [31/39]
[INFO] from computility-module-compute\pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-module-compute ---
[INFO] Generating flattened POM of project com.luhu:computility-module-compute:pom:2.6.0-jdk8-SNAPSHOT...
[INFO] Copying com.luhu:computility-module-compute:pom:2.6.0-jdk8-SNAPSHOT to project local repository
[INFO] Copying com.luhu:computility-module-compute:pom:consumer:2.6.0-jdk8-SNAPSHOT to project local repository
[INFO]
[INFO] --------------< com.luhu:computility-module-compute-api >---------------
[INFO] Building computility-module-compute-api 2.6.0-jdk8-SNAPSHOT [32/39]
[INFO] from computility-module-compute\computility-module-compute-api\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-module-compute-api ---
[INFO] skip non existing resourceDirectory C:\work\code\puhui\api\computility-module-compute\computility-module-compute-api\src\main\resources
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-module-compute-api ---
[INFO] Generating flattened POM of project com.luhu:computility-module-compute-api:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-module-compute-api ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] ------------------< com.luhu:computility-module-pay >-------------------
[INFO] Building computility-module-pay 2.6.0-jdk8-SNAPSHOT [33/39]
[INFO] from computility-module-pay\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-module-pay ---
[INFO] skip non existing resourceDirectory C:\work\code\puhui\api\computility-module-pay\src\main\resources
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-module-pay ---
[INFO] Generating flattened POM of project com.luhu:computility-module-pay:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-module-pay ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 247 source files with javac [debug target 1.8] to target\classes
[WARNING] δ�� -source 8 һ������������·��
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/order/PayOrderConvert.java:[43,27] Unmapped target properties: "appName, extension".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/order/PayOrderConvert.java:[51,40] Unmapped target property: "appName". Mapping from Collection element "PayOrderDO list" to "PayOrderPageItemRespVO list".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/order/PayOrderConvert.java:[60,21] Unmapped target property: "appName".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/order/PayOrderConvert.java:[62,16] Unmapped target properties: "id, appId, channelId, channelCode, notifyUrl, channelFeeRate, channelFeePrice, status, successTime, extensionId, no, refundPrice, channelUserId, channelOrderNo".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/order/PayOrderConvert.java:[65,25] Unmapped target properties: "no, orderId, channelId, status, channelErrorCode, channelErrorMsg, channelNotifyData".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/order/PayOrderConvert.java:[67,27] Unmapped target properties: "outTradeNo, subject, body, notifyUrl, price, expireTime".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/order/PayOrderConvert.java:[72,29] Unmapped target properties: "orderExtensionId, wpgjOrderId".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/wallet/PayWalletRechargeConvert.java:[26,25] Unmapped target properties: "createTime, updateTime, creator, updater, deleted, id, payStatus, payOrderId, payChannelCode, payTime, payRefundId, refundTotalPrice, refundPayPrice, refundBonusPrice, refundTime, refundStatus, transMap".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/app/PayAppConvert.java:[29,26] Unmapped target property: "channelCodes".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/app/PayAppConvert.java:[31,14] Unmapped target property: "id".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/wallet/PayWalletRechargePackageConvert.java:[19,32] Unmapped target properties: "createTime, updateTime, creator, updater, deleted, id, transMap".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/wallet/PayWalletRechargePackageConvert.java:[21,32] Unmapped target properties: "createTime, updateTime, creator, updater, deleted, transMap".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/refund/PayRefundConvert.java:[32,28] Unmapped target properties: "appName, order".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/refund/PayRefundConvert.java:[40,41] Unmapped target property: "appName". Mapping from Collection element "PayRefundDO list" to "PayRefundPageItemRespVO list".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/refund/PayRefundConvert.java:[42,17] Unmapped target properties: "id, no, appId, channelId, channelCode, orderId, orderNo, notifyUrl, status, payPrice, refundPrice, channelOrderNo, channelRefundNo, successTime, channelErrorCode, channelErrorMsg, channelNotifyData".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/refund/PayRefundConvert.java:[51,22] Unmapped target property: "appName".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/wallet/PayWalletTransactionConvert.java:[18,28] Unmapped target properties: "createTime, updateTime, creator, updater, deleted, id, no, transMap".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/channel/PayChannelConvert.java:[18,18] Unmapped target property: "id".
[WARNING] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/convert/channel/PayChannelConvert.java:[21,18] Unmapped target property: "code".
[INFO] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/controller/admin/notify/PayNotifyController.java: C:\work\code\puhui\api\computility-module-pay\src\main\java\com\luhu\computility\module\pay\controller\admin\notify\PayNotifyController.javaʹ����δ�����򲻰�ȫ�IJ�����
[INFO] /C:/work/code/puhui/api/computility-module-pay/src/main/java/com/luhu/computility/module/pay/controller/admin/notify/PayNotifyController.java: �й���ϸ��Ϣ, ��ʹ�� -Xlint:unchecked ���±��롣
[INFO]
[INFO] -----------------< com.luhu:computility-module-member >-----------------
[INFO] Building computility-module-member 2.6.0-jdk8-SNAPSHOT [34/39]
[INFO] from computility-module-member\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-module-member ---
[INFO] Copying 3 resources from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-module-member ---
[INFO] Generating flattened POM of project com.luhu:computility-module-member:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-module-member ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 229 source files with javac [debug target 1.8] to target\classes
[WARNING] δ�� -source 8 һ������������·��
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/user/MemberUserConvert.java:[29,29] Unmapped target properties: "level, brokerageEnabled".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/user/MemberUserConvert.java:[37,29] Unmapped target property: "brokerageEnabled".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/user/MemberUserConvert.java:[43,18] Unmapped target properties: "password, registerIp, registerTerminal, loginIp, loginDate, point, experience, newapiUserId, newapiAccessToken, newapiKey, newapiUsername, newapiPassword".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/user/MemberUserConvert.java:[48,22] Unmapped target properties: "totalPoint, tagNames, levelName, groupName".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/level/MemberExperienceRecordConvert.java:[28,30] Unmapped target property: "id".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/point/MemberPointRecordConvert.java:[35,41] Unmapped target property: "nickname". Mapping from Collection element "MemberPointRecordDO list" to "MemberPointRecordRespVO list".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/signin/MemberSignInRecordConvert.java:[41,42] Unmapped target property: "nickname". Mapping from Collection element "MemberSignInRecordDO list" to "MemberSignInRecordRespVO list".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/config/MemberConfigConvert.java:[22,20] Unmapped target property: "id".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/signin/MemberSignInConfigConvert.java:[23,26] Unmapped target property: "id".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/level/MemberLevelConvert.java:[25,19] Unmapped target property: "id".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/address/AddressConvert.java:[27,21] Unmapped target properties: "id, userId".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/address/AddressConvert.java:[29,21] Unmapped target property: "userId".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/auth/AuthConvert.java:[22,26] Unmapped target property: "socialType".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/auth/AuthConvert.java:[23,28] Unmapped target property: "socialType".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/auth/AuthConvert.java:[25,23] Unmapped target property: "createIp".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/group/MemberGroupConvert.java:[24,19] Unmapped target property: "id".
[WARNING] /C:/work/code/puhui/api/computility-module-member/src/main/java/com/luhu/computility/module/member/convert/tag/MemberTagConvert.java:[23,17] Unmapped target property: "id".
[INFO]
[INFO] ------------------< com.luhu:computility-module-mall >------------------
[INFO] Building computility-module-mall 2.6.0-jdk8-SNAPSHOT [35/39]
[INFO] from computility-module-mall\pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-module-mall ---
[INFO] Generating flattened POM of project com.luhu:computility-module-mall:pom:2.6.0-jdk8-SNAPSHOT...
[INFO] Copying com.luhu:computility-module-mall:pom:2.6.0-jdk8-SNAPSHOT to project local repository
[INFO] Copying com.luhu:computility-module-mall:pom:consumer:2.6.0-jdk8-SNAPSHOT to project local repository
[INFO]
[INFO] ---------------< com.luhu:computility-module-trade-api >----------------
[INFO] Building computility-module-trade-api 2.6.0-jdk8-SNAPSHOT [36/39]
[INFO] from computility-module-mall\computility-module-trade-api\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-module-trade-api ---
[INFO] skip non existing resourceDirectory C:\work\code\puhui\api\computility-module-mall\computility-module-trade-api\src\main\resources
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-module-trade-api ---
[INFO] Generating flattened POM of project com.luhu:computility-module-trade-api:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-module-trade-api ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] ------------------< com.luhu:computility-module-biz >-------------------
[INFO] Building computility-module-biz 2.6.0-jdk8-SNAPSHOT [37/39]
[INFO] from computility-module-biz\pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-module-biz ---
[INFO] Generating flattened POM of project com.luhu:computility-module-biz:pom:2.6.0-jdk8-SNAPSHOT...
[INFO] Copying com.luhu:computility-module-biz:pom:2.6.0-jdk8-SNAPSHOT to project local repository
[INFO] Copying com.luhu:computility-module-biz:pom:consumer:2.6.0-jdk8-SNAPSHOT to project local repository
[INFO]
[INFO] ----------------< com.luhu:computility-module-biz-api >-----------------
[INFO] Building computility-module-biz-api 2.6.0-jdk8-SNAPSHOT [38/39]
[INFO] from computility-module-biz\computility-module-biz-api\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-module-biz-api ---
[INFO] skip non existing resourceDirectory C:\work\code\puhui\api\computility-module-biz\computility-module-biz-api\src\main\resources
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-module-biz-api ---
[INFO] Generating flattened POM of project com.luhu:computility-module-biz-api:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-module-biz-api ---
[INFO] Nothing to compile - all classes are up to date.
[INFO]
[INFO] ---------------< com.luhu:computility-module-apihub-biz >---------------
[INFO] Building computility-module-apihub-biz 2.6.0-jdk8-SNAPSHOT [39/39]
[INFO] from computility-module-apihub\computility-module-apihub-biz\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] Version not locked for default bindings plugins [maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ computility-module-apihub-biz ---
[INFO] skip non existing resourceDirectory C:\work\code\puhui\api\computility-module-apihub\computility-module-apihub-biz\src\main\resources
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ computility-module-apihub-biz ---
[INFO] Generating flattened POM of project com.luhu:computility-module-apihub-biz:jar:2.6.0-jdk8-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ computility-module-apihub-biz ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 133 source files with javac [debug target 1.8] to target\classes
[WARNING] δ�� -source 8 һ������������·��
[INFO] /C:/work/code/puhui/api/computility-module-apihub/computility-module-apihub-biz/src/main/java/com/luhu/computility/module/apihub/service/newapi/NewApiClient.java: C:\work\code\puhui\api\computility-module-apihub\computility-module-apihub-biz\src\main\java\com\luhu\computility\module\apihub\service\newapi\NewApiClient.javaʹ����δ�����򲻰�ȫ�IJ�����
[INFO] /C:/work/code/puhui/api/computility-module-apihub/computility-module-apihub-biz/src/main/java/com/luhu/computility/module/apihub/service/newapi/NewApiClient.java: �й���ϸ��Ϣ, ��ʹ�� -Xlint:unchecked ���±��롣
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for computility 2.6.0-jdk8-SNAPSHOT:
[INFO]
[INFO] computility ........................................ SUCCESS [ 1.016 s]
[INFO] computility-framework .............................. SUCCESS [ 0.308 s]
[INFO] computility-common ................................. SUCCESS [ 1.276 s]
[INFO] computility-spring-boot-starter-web ................ SUCCESS [ 0.623 s]
[INFO] computility-spring-boot-starter-mybatis ............ SUCCESS [ 0.733 s]
[INFO] computility-spring-boot-starter-redis .............. SUCCESS [ 0.622 s]
[INFO] computility-spring-boot-starter-security ........... SUCCESS [ 0.505 s]
[INFO] computility-spring-boot-starter-mq ................. SUCCESS [ 0.686 s]
[INFO] computility-spring-boot-starter-job ................ SUCCESS [ 0.334 s]
[INFO] computility-spring-boot-starter-test ............... SUCCESS [ 0.441 s]
[INFO] computility-spring-boot-starter-biz-tenant ......... SUCCESS [ 0.543 s]
[INFO] computility-spring-boot-starter-websocket .......... SUCCESS [ 0.548 s]
[INFO] computility-spring-boot-starter-monitor ............ SUCCESS [ 0.300 s]
[INFO] computility-module-apihub .......................... SUCCESS [ 0.186 s]
[INFO] computility-module-apihub-api ...................... SUCCESS [ 5.120 s]
[INFO] computility-spring-boot-starter-biz-ip ............. SUCCESS [ 0.297 s]
[INFO] computility-spring-boot-starter-excel .............. SUCCESS [ 0.396 s]
[INFO] computility-spring-boot-starter-biz-data-permission SUCCESS [ 0.376 s]
[INFO] computility-module-infra ........................... SUCCESS [ 0.882 s]
[INFO] computility-module-system .......................... SUCCESS [ 1.077 s]
[INFO] computility-module-compute ......................... SUCCESS [ 0.121 s]
[INFO] computility-module-compute-api ..................... SUCCESS [ 0.216 s]
[INFO] computility-module-pay ............................. SUCCESS [ 16.946 s]
[INFO] computility-module-member .......................... SUCCESS [ 16.655 s]
[INFO] computility-module-mall ............................ SUCCESS [ 0.184 s]
[INFO] computility-module-trade-api ....................... SUCCESS [ 0.355 s]
[INFO] computility-module-biz ............................. SUCCESS [ 0.177 s]
[INFO] computility-module-biz-api ......................... SUCCESS [ 0.335 s]
[INFO] computility-module-apihub-biz ...................... SUCCESS [ 13.038 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:05 min
[INFO] Finished at: 2026-09-18T11:28:39+08:00
[INFO] ------------------------------------------------------------------------
package com.luhu.computility.module.apihub.controller.admin.newapi;
import lombok.AllArgsConstructor;
import lombok.experimental.Accessors;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* NewAPI /api/user/login 响应 data 字段映射
*
* <p>NewAPI v3 登录成功时,data 顶层字段结构:
* <pre>
* {
* "access_token": "...",
* "token_type": "Bearer",
* "access_expires_at": ...,
* "session": { ... },
* "user": { "id": 123, "username": "...", ... }
* }
* </pre>
* 之前 puhui 错误地把整个 data 映射到 NewApiUserVO,导致 id 等字段全为 null;
* 本 VO 直接持有 access_token 和嵌套 user.id,避免再次去取 session cookie / 走 /api/user/token 生成访问令牌。
*/
@Data
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class NewApiLoginRespVO {
/** data.access_token:可直接作为后续接口的 Bearer 凭据 */
private String accessToken;
/** data.token_type(如 "Bearer") */
private String tokenType;
/** data.user.id:NewAPI 用户 ID */
private Long userId;
/** data.user.username:冗余,便于日志/持久化 */
private String username;
}
......@@ -83,44 +83,31 @@ public class AiTokenService {
log.info("[AiTokenService.createTokenStep2] 准备登录: username={}", username);
try {
NewApiResponse<NewApiUserVO> loginResp = newApiClient.login(username, password);
NewApiResponse<NewApiLoginRespVO> loginResp = newApiClient.login(username, password);
log.info("[AiTokenService.createTokenStep2] 登录结果: success={}, message={}", loginResp.getSuccess(), loginResp.getMessage());
if (!Boolean.TRUE.equals(loginResp.getSuccess()) || loginResp.getData() == null) {
return AiTokenResult.builder()
.success(false)
.message("登录NewAPI失败: " + loginResp.getMessage())
.build();
}
Integer newApiUserId = loginResp.getData().getId();
log.info("[AiTokenService.createTokenStep2] 登录成功, newApiUserId={}", newApiUserId);
String session = newApiClient.getSessionCookie(loginResp.getHttpResponse());
log.info("[AiTokenService.createTokenStep2] 获取session: {}", session != null ? "成功" : "失败");
NewApiResponse<String> tokenResp = newApiClient.generateAccessToken(session, newApiUserId);
log.info("[AiTokenService.createTokenStep2] 生成AccessToken结果: success={}, message={}", tokenResp.getSuccess(), tokenResp.getMessage());
if (!Boolean.TRUE.equals(tokenResp.getSuccess()) || tokenResp.getData() == null) {
return AiTokenResult.builder()
.success(false)
.message("生成访问令牌失败: " + tokenResp.getMessage())
.newApiUsername(username)
.newApiPassword(password)
.newApiUserId(newApiUserId.longValue())
.build();
}
String accessToken = tokenResp.getData();
log.info("[AiTokenService.createTokenStep2] AccessToken生成成功: {}***", accessToken.substring(0, Math.min(5, accessToken.length())));
Long newApiUserId = loginResp.getData().getUserId();
String accessToken = loginResp.getData().getAccessToken();
log.info("[AiTokenService.createTokenStep2] 登录成功, newApiUserId={}, accessToken={}***",
newApiUserId, accessToken.substring(0, Math.min(5, accessToken.length())));
return createTokenStep4(newApiUserId, accessToken, userId, username, password);
// NewAPI v3 登录响应已直接返回 access_token,无需再调 /api/user/token;
// 直接以该 token 作为 Bearer 凭据进入 step4 创建 API Key。
return createTokenStep4(newApiUserId.intValue(), accessToken, userId, username, password);
} catch (Exception e) {
log.error("[AiTokenService.createTokenStep2] 登录异常", e);
return AiTokenResult.builder()
.success(false)
.message("登录NewAPI异常: " + e.getMessage())
.message("登录NewAPI异常: " + (e.getMessage() == null ? e.getClass().getSimpleName() : e.getMessage()))
.newApiUsername(username)
.newApiPassword(password)
.build();
......
......@@ -96,7 +96,22 @@ public class NewApiClient {
}
}
public NewApiResponse<NewApiUserVO> login(String username, String password) {
/**
* 用户登录(NewAPI v3 /api/user/login)
*
* <p>NewAPI v3 登录响应 data 字段结构:
* <pre>
* {
* "access_token": "...", // 直接可用作 Bearer 凭据
* "token_type": "Bearer",
* "user": { "id": 123, "username": "...", ... }
* }
* </pre>
* 旧实现错误地把整个 data 映射到 NewApiUserVO,导致 userId 拿不到;
* 本方法改为显式从 data.access_token 和 data.user.id 取值,避免依赖
* session cookie 和后续 /api/user/token 步骤。
*/
public NewApiResponse<NewApiLoginRespVO> login(String username, String password) {
String url = newApiProperties.getBaseUrl() + "/api/user/login";
log.info("[NewApiClient.login] 请求URL: {}", url);
......@@ -113,18 +128,88 @@ public class NewApiClient {
.execute();
log.info("[NewApiClient.login] 响应状态: {}", response.getStatus());
log.info("[NewApiClient.login] 响应Cookie: {}", response.getCookies());
return parseResponse(response, NewApiUserVO.class);
NewApiResponse<NewApiLoginRespVO> resp = parseLoginResponse(response);
resp.setHttpResponse(response);
return resp;
} catch (Exception e) {
log.error("[NewApiClient.login] 请求异常", e);
return NewApiResponse.<NewApiUserVO>builder()
return NewApiResponse.<NewApiLoginRespVO>builder()
.success(false)
.message("请求异常: " + e.getMessage())
.build();
}
}
/**
* 解析 NewAPI /api/user/login 响应
*
* <p>只关心 data.access_token、data.token_type、data.user.id、data.user.username;
* 不抛异常,统一返回 NewApiResponse 调用方判断。
*/
private NewApiResponse<NewApiLoginRespVO> parseLoginResponse(HttpResponse response) {
try {
String body = response.body();
if (StrUtil.isBlank(body)) {
return NewApiResponse.<NewApiLoginRespVO>builder()
.success(false)
.message("Empty response")
.build();
}
JSONObject json = JSONUtil.parseObj(body);
NewApiResponse<NewApiLoginRespVO> result = new NewApiResponse<>();
result.setSuccess(json.getBool("success"));
result.setMessage(json.getStr("message"));
if (!Boolean.TRUE.equals(json.getBool("success"))) {
return result;
}
JSONObject data = json.getJSONObject("data");
if (data == null) {
return NewApiResponse.<NewApiLoginRespVO>builder()
.success(false)
.message("登录响应缺少 data 字段")
.build();
}
NewApiLoginRespVO vo = new NewApiLoginRespVO();
vo.setAccessToken(data.getStr("access_token"));
vo.setTokenType(data.getStr("token_type"));
JSONObject user = data.getJSONObject("user");
if (user != null) {
Object idObj = user.get("id");
if (idObj instanceof Number) {
vo.setUserId(((Number) idObj).longValue());
} else if (idObj != null) {
try {
vo.setUserId(Long.parseLong(idObj.toString()));
} catch (NumberFormatException ignored) {
}
}
vo.setUsername(user.getStr("username"));
}
if (vo.getAccessToken() == null || vo.getAccessToken().isEmpty()
|| vo.getUserId() == null) {
return NewApiResponse.<NewApiLoginRespVO>builder()
.success(false)
.message("登录响应缺少 access_token 或 user.id")
.build();
}
result.setData(vo);
return result;
} catch (Exception e) {
log.error("[NewApiClient.parseLoginResponse] 解析响应异常", e);
return NewApiResponse.<NewApiLoginRespVO>builder()
.success(false)
.message("解析响应失败: " + e.getMessage())
.build();
}
}
public String getSessionCookie(HttpResponse loginResponse) {
String session = loginResponse.getCookieValue("session");
log.info("[NewApiClient.getSessionCookie] session={}", session != null ? session : "null");
......
......@@ -18,8 +18,9 @@ public class ResourceSkuSaveReqVO {
@NotNull(message = "关联的SPU ID不能为空")
private Long spuId;
@Schema(description = "租赁天数(30/90/365等)", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "租赁天数(30/90/365等)不能为空")
@Schema(description = "租赁天数(30/90/365等;0=永久)", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "租赁天数不能为空")
@Min(value = 0, message = "租赁天数不能小于 0")
private Integer durationDays;
@Schema(description = "支付价格(单位:分)", requiredMode = Schema.RequiredMode.REQUIRED, example = "22794")
......
......@@ -4,6 +4,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
......@@ -52,8 +53,9 @@ public class AppResourceOrderSnapshotSaveReqVO {
// - 数据库 spu_name 列允许 NULL
private String spuName;
@Schema(description = "租赁天数", requiredMode = Schema.RequiredMode.REQUIRED, example = "7")
@Schema(description = "租赁天数(0=永久)", example = "7")
@NotNull(message = "租赁天数不能为空")
@Min(value = 0, message = "租赁天数不能小于 0")
private Integer durationDays;
@Schema(description = "租赁开始时间")
......
......@@ -76,7 +76,8 @@ public class AppResourceSkuController {
respVO.setName(spuVo.getName());
respVO.setRemark(spuVo.getIntro());
respVO.setPrice(sku.getPaymentPrice());
respVO.setFeeInfo(sku.getDurationDays() + "天");
// duration_days=0 表示永久,前端「/X天」后缀置空
respVO.setFeeInfo(sku.getDurationDays() != null && sku.getDurationDays() > 0 ? sku.getDurationDays() + "天" : "");
respVO.setSpecMap(spuVo.getSpecMap());
respVO.setLocation(spuVo.getLocation());
return respVO;
......@@ -102,7 +103,8 @@ public class AppResourceSkuController {
respVO.setName(resourceSpuVo.getName());
respVO.setRemark(resourceSpuVo.getIntro());
respVO.setPrice(resourceSku.getPaymentPrice());
respVO.setFeeInfo(resourceSku.getDurationDays() + "天");
// duration_days=0 表示永久,前端「/X天」后缀置空
respVO.setFeeInfo(resourceSku.getDurationDays() != null && resourceSku.getDurationDays() > 0 ? resourceSku.getDurationDays() + "天" : "");
respVO.setSpecMap(resourceSpuVo.getSpecMap());
respVO.setLocation(resourceSpuVo.getLocation());
return success(respVO);
......
......@@ -249,7 +249,11 @@ public class ResourceOrderServiceImpl implements ResourceOrderService {
.setAppKey(resourceOrderProperties.getPayAppKey()).setUserIp(order.getUserIp());
// 商户相关字段
payOrderCreateReqDTO.setMerchantOrderId(String.valueOf(order.getId()));
String subject = order.getSpuName() + " - " + getDurationDaysFromSku(order.getSkuId()) + "天";
// 永久订单(durationDays=0)只拼 SPU 名,不带「 - X天」后缀
Integer payDurationDays = getDurationDaysFromSku(order.getSkuId());
String subject = (payDurationDays != null && payDurationDays > 0)
? order.getSpuName() + " - " + payDurationDays + "天"
: order.getSpuName();
subject = StrUtils.maxLength(subject, PayOrderCreateReqDTO.SUBJECT_MAX_LENGTH); // 避免超过 32 位
payOrderCreateReqDTO.setSubject(subject);
payOrderCreateReqDTO.setBody(subject);
......@@ -463,7 +467,10 @@ public class ResourceOrderServiceImpl implements ResourceOrderService {
if (snapshot.getSpecSnapshot() != null) {
respVO.setSpecMap(JSONUtil.toBean(snapshot.getSpecSnapshot(), Map.class));
}
respVO.setSkuName(snapshot.getSpuName() + " - " + snapshot.getDurationDays() + "天");
// 永久订单(duration_days=0)只拼 SPU 名,不带「 - X天」后缀
respVO.setSkuName(snapshot.getDurationDays() != null && snapshot.getDurationDays() > 0
? snapshot.getSpuName() + " - " + snapshot.getDurationDays() + "天"
: snapshot.getSpuName());
// 快照中没有的字段(分类、位置)需要从SPU获取
ResourceSkuDO sku = resourceSkuService.getResourceSku(order.getSkuId());
......@@ -490,7 +497,11 @@ public class ResourceOrderServiceImpl implements ResourceOrderService {
respVO.setSpuName(spu.getName());
respVO.setCategoryId(spu.getCategoryId());
respVO.setLocation(spu.getLocation());
respVO.setSkuName(spu.getName() + " - " + sku.getDurationDays() + "天");
// 永久订单(duration_days=0)只拼 SPU 名,不带「 - X天」后缀
Integer legacyDurationDays = sku.getDurationDays();
respVO.setSkuName(legacyDurationDays != null && legacyDurationDays > 0
? spu.getName() + " - " + legacyDurationDays + "天"
: spu.getName());
// 设置分类名称
if (spu.getCategoryId() != null) {
......@@ -531,7 +542,10 @@ public class ResourceOrderServiceImpl implements ResourceOrderService {
if (snapshot.getSpecSnapshot() != null) {
respVO.setSpecMap(JSONUtil.toBean(snapshot.getSpecSnapshot(), Map.class));
}
respVO.setSkuName(snapshot.getSpuName() + " - " + snapshot.getDurationDays() + "天");
// 永久订单(duration_days=0)只拼 SPU 名,不带「 - X天」后缀
respVO.setSkuName(snapshot.getDurationDays() != null && snapshot.getDurationDays() > 0
? snapshot.getSpuName() + " - " + snapshot.getDurationDays() + "天"
: snapshot.getSpuName());
// 快照中没有的字段(分类、位置)需要从SPU获取
ResourceSkuDO sku = resourceSkuService.getResourceSku(order.getSkuId());
......@@ -663,7 +677,11 @@ public class ResourceOrderServiceImpl implements ResourceOrderService {
CommonWpgjCreateReqDTO createReqDTO = new CommonWpgjCreateReqDTO();
createReqDTO.setBusinessType(1); // 1-算力资源订单
createReqDTO.setBusinessOrderId(order.getId());
String orderTitle = order.getSpuName() + " - " + getDurationDaysFromSku(order.getSkuId()) + "天";
// 永久订单(durationDays=0)只拼 SPU 名,不带「 - X天」后缀
Integer wpgjDurationDays = getDurationDaysFromSku(order.getSkuId());
String orderTitle = (wpgjDurationDays != null && wpgjDurationDays > 0)
? order.getSpuName() + " - " + wpgjDurationDays + "天"
: order.getSpuName();
createReqDTO.setOrderTitle(orderTitle);
createReqDTO.setPayAmount(order.getPaymentPrice().intValue());
......@@ -916,7 +934,7 @@ public class ResourceOrderServiceImpl implements ResourceOrderService {
throw exception(RESOURCE_ORDER_DELIVERY_FIELDS_REQUIRED);
}
// 2. 取租赁天数
// 2. 取租赁天数(0=永久,不设置结束时间)
Integer durationDays = getDurationDaysFromSku(order.getSkuId());
if (durationDays == null) {
throw exception(RESOURCE_ORDER_SKU_NOT_EXISTS);
......@@ -924,6 +942,7 @@ public class ResourceOrderServiceImpl implements ResourceOrderService {
// 3. 算租赁时间
LocalDateTime now = LocalDateTime.now();
LocalDateTime rentEndTime = durationDays > 0 ? now.plusDays(durationDays) : null;
// 4. 写订单
ResourceOrderDO updateOrder = new ResourceOrderDO();
......@@ -934,7 +953,7 @@ public class ResourceOrderServiceImpl implements ResourceOrderService {
updateOrder.setDeliveryPassword(reqVO.getDeliveryPassword());
updateOrder.setDeliveredTime(now);
updateOrder.setRentStartTime(now);
updateOrder.setRentEndTime(now.plusDays(durationDays));
updateOrder.setRentEndTime(rentEndTime);
updateOrder.setDeliverOperatorId(operatorId);
updateOrder.setDeliverOperatorName(getOperatorName(operatorId));
resourceOrderMapper.updateById(updateOrder);
......
......@@ -212,10 +212,8 @@ wx:
# 芋道配置项,设置当前项目所有自定义的配置
computility:
new-api:
# 线上 NewAPI 地址(用于获取 /api/pricing 数据)
base-url: http://phslgld.hnluchuan.com:3000
# 线上 NewAPI 管理员 token(在 NewAPI 后台 → 用户管理 → 管理员账号详情获取)
admin-token: V33oMN4fI5H0wKSs0gXipXZ4WvU6DQ==
base-url: http://172.25.164.0:3000
admin-token: nfcJyVtYb6xtREHA2MyL4f4o5TDg/qU=
admin-user-id: 1
captcha:
enable: false # 本地环境,暂时关闭图片验证码,方便登录等接口的测试;
......
-- ============================================================
-- 算力资源 SKU「永久」租赁时长字典项
-- 库:new_computility
-- 文件:2026_09_17_add_compute_resource_duration_permanent.sql
--
-- 【背景】
-- 算力资源 SKU 原本强制要求租赁天数(30/90/365 等),不支持「永久」商品。
-- 本次放开:duration_days = 0 表示永久,下单时 rent_end_time 不设置,
-- expireFinishedOrders 定时任务依赖 BETWEEN NULL 跳过永久订单。
--
-- 【目标】
-- 给字典 compute_resource_duration 新增一条 value=0, label=永久 的选项,
-- 让管理端 SKU 表单「租赁时长」下拉框出现「永久」选项。
--
-- 【安全说明】
-- - INSERT IGNORE:已存在则跳过(id 自增会跳过,dict_type+value 唯一则跳过)
-- - 不会影响现有 30/90/365 等天数选项
-- - 不修改表结构
-- ============================================================
USE `new_computility`;
-- 新增「永久」字典项
INSERT IGNORE INTO `system_dict_data`
(`sort`, `label`, `value`, `dict_type`, `status`, `color_type`, `css_class`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`)
VALUES
(0, '永久', '0', 'compute_resource_duration', 0, 'default', '', 'duration_days=0 表示永久租赁', '1', NOW(), '1', NOW(), b'0');
-- 验证:
-- SELECT * FROM system_dict_data WHERE dict_type = 'compute_resource_duration' ORDER BY sort;
-- 期望:除原有 30天/90天/365天 等项外,新增一条 value=0 label=永久 sort=0 的项
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment