From bf700de85794dc57d587605921ad5586d5b16e72 Mon Sep 17 00:00:00 2001 From: "james.zhao" Date: Tue, 2 Apr 2019 17:53:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E9=93=B6=E5=BF=AB=E6=8D=B7=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E6=95=B4=E5=90=88=EF=BC=8CAPI=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/document/cn/apis.js | 59 +++++++++++++---- src/document/en/apis.js | 59 +++++++++++++---- .../merchants/beans/ClientRegisterInfo.java | 27 ++++++++ src/main/resources/application-dev.properties | 2 +- src/main/resources/application.properties | 7 +- .../static/commons/filters/commonFilters.js | 53 ++++++++++++++- src/main/ui/static/data/lakalapaygoods.json | 8 +++ .../ui/static/data/lakalapayindustry.json | 8 +++ src/main/ui/static/data/lakalapaysettle.json | 13 ++++ .../static/payment/partner/partner-manage.js | 64 +++++++++++++++++++ .../partner/templates/add_partner.html | 59 ++++++++++++++++- .../templates/add_sub_partner_dialog.html | 58 ++++++++++++++++- .../partner/templates/partner_detail.html | 27 ++++++++ .../partner/templates/partner_edit.html | 57 +++++++++++++++++ .../cbpay/lakala/v1/gateway_jsapi.js | 13 ++-- .../cbpay/lakala/v1/gateway_jsapi_phone.js | 23 ++++--- 16 files changed, 495 insertions(+), 42 deletions(-) create mode 100644 src/main/ui/static/data/lakalapaygoods.json create mode 100644 src/main/ui/static/data/lakalapayindustry.json create mode 100644 src/main/ui/static/data/lakalapaysettle.json diff --git a/src/document/cn/apis.js b/src/document/cn/apis.js index 5fbbf7c6e..a0da13d8a 100644 --- a/src/document/cn/apis.js +++ b/src/document/cn/apis.js @@ -884,17 +884,17 @@ * 用于商户提交海关需要的订单附件信息。仅支持微信和支付宝,微信只支持一个月内的支付订单进行报关申请。 * * @apiVersion 1.0.0 - * @apiGroup Customs_Declaration + * @apiGroup Custom * @apiHeader Accept application/json * @apiHeader Content-Type application/json - * @apiParam (PathVariable) {String} partner_code 必填,商户编码,由4位大写字母或数字构成 + * @apiParam (PathVariable) {String} partner_code 必填,商户编码,由4-6位大写字母或数字构成 * @apiParam (PathVariable) {String} client_report_id 必填,商户申请报关单号,要求同一商户唯一 * @apiUse Sign * @apiParam (JSON) {String} order_id 必填,商户支付订单号,要求同一商户唯一 * @apiParam (JSON) {String} custom 必填,海关编号 * 渠道海关编号 * @apiParam (JSON) {String} mch_custom_id 必填,商户在海关备案的编号 * @apiParam (JSON) {String} mch_custom_name 必填,商户海关备案名称 - * @apiParam (JSON) {JSONArray} sub_order 子订单(拆单) + * @apiParam (JSON) {JSON[]} sub_order 子订单(拆单) * * @apiParam (SUB_JSON) {String} sub_order_no 商户子订单号 * @apiParam (SUB_JSON) {String=CNY} fee_type=CNY 币种代码 @@ -903,12 +903,47 @@ * * @apiSuccess {String} report_id RoyalPay海关单号 * @apiSuccess {String} client_report_id 商户申请报关单号 - * @apiSuccess {int} report_status 0:暂存,1:提交,2:提交失败,3:提交成功 + * @apiSuccess {String} report_status 报关单状态: PROCCESSING,SUBMITED,FAILED,SUCCESS + * @apiSuccess {String} channel 支付渠道 + * @apiSuccess {String} custom 海关编号 + * @apiSuccess {String} mch_custom_no 商户在海关备案的编号 + * @apiSuccess {String} mch_custom_name 商户海关备案名称 + * @apiSuccess {String} order_id RoyalPay订单号 + * @apiSuccess {String} transaction_id 支付渠道订单号 + * @apiSuccess {String} order_currency 币种 + * @apiSuccess {Double} order_amount 订单金额 + * @apiSuccess {String} report_time 报关时间 + * @apiSuccess {String} creation_date 报关单创建时间 + * @apiSuccess {String} last_update_date 更新时间 + * @apiSuccess {String} error_code 错误代码 + * @apiSuccess {String} error_msg 错误返回的信息描述 + * + * @apiUse GlobalError + * @apiError (ERROR_CODE) ORDER_MISMATCH 订单号与商户不匹配 + * + */ +/** + * @api {PUT} /api/v1.0/customs/partners/{partner_code}/redeclare/report/{client_report_id} 重新提交报关单 + * @apiName redeclare_report + * @apiDescription + * 用于重新提交未报关成功的报关单 + * + * @apiVersion 1.0.0 + * @apiGroup Custom + * @apiHeader Accept application/json + * @apiHeader Content-Type application/json + * @apiParam (PathVariable) {String} partner_code 必填,商户编码,由4-6位大写字母或数字构成 + * @apiParam (PathVariable) {String} client_report_id 必填,商户申请报关单号,要求同一商户唯一 + * @apiUse Sign + * + * @apiSuccess {String} report_id RoyalPay海关单号 + * @apiSuccess {String} client_report_id 商户申请报关单号 + * @apiSuccess {String} report_status 报关单状态: PROCCESSING,SUBMITED,FAILED,SUCCESS * @apiSuccess {String} channel 支付渠道 * @apiSuccess {String} custom 海关编号 * @apiSuccess {String} mch_custom_no 商户在海关备案的编号 * @apiSuccess {String} mch_custom_name 商户海关备案名称 - * @apiSuccess {String} order_id Royalpay订单号 + * @apiSuccess {String} order_id RoyalPay订单号 * @apiSuccess {String} transaction_id 支付渠道订单号 * @apiSuccess {String} order_currency 币种 * @apiSuccess {Double} order_amount 订单金额 @@ -923,24 +958,26 @@ * */ /** - * @api {GET} /api/v1.0/customs/partners/{partner_code}/declare/query/{report_id} 查询报关单 + * @api {GET} /api/v1.0/customs/partners/{partner_code}/declare/query/{client_report_id} 查询报关单 * @apiName declare_query * @apiDescription * 用于商户查询报关单号的状态。 * * @apiVersion 1.0.0 - * @apiGroup Customs_Declaration + * @apiGroup Custom * @apiHeader Accept application/json * @apiHeader Content-Type application/json - * @apiParam (PathVariable) {String} partner_code 必填,商户编码,由4位大写字母或数字构成 - * @apiParam (PathVariable) {String} report_id 必填,RoyalPay海关单号 + * @apiParam (PathVariable) {String} partner_code 必填,商户编码,由4-6位大写字母或数字构成 + * @apiParam (PathVariable) {String} client_report_id 必填,商户申请报关单号,要求同一商户唯一 * @apiUse Sign * * @apiSuccess {String} return_code 执行结果 - * @apiSuccess {String} report_status 报关单状态 - * @apiSuccess {String} report_id 商户申请报关单号 + * @apiSuccess {String} report_status 报关单状态: PROCCESSING,SUBMITED,FAILED,SUCCESS + * @apiSuccess {String} report_id RoyalPay海关单号 + * @apiSuccess {String} client_report_id 商户申请报关单号 * @apiSuccess {String} return_msg 错误描述,仅在执行结果不为SUCCESS情况下出现 * @apiSuccess {String} order_id RoyalPay订单号 + * @apiSuccess {String} partner_order_id 商户订单ID * * @apiUse GlobalError * @apiError (ERROR_CODE) ORDER_MISMATCH 订单号与商户不匹配 diff --git a/src/document/en/apis.js b/src/document/en/apis.js index 383aa3bcf..325238f2c 100644 --- a/src/document/en/apis.js +++ b/src/document/en/apis.js @@ -895,13 +895,13 @@ * */ /** - * @api {PUT} /api/v1.0/customs/partners/{partner_code}/declare/query/{client_report_id} Create Declare No. + * @api {PUT} /api/v1.0/customs/partners/{partner_code}/declare/report/{client_report_id} Create Declare ID * @apiName declare_report * @apiDescription * Used to submit the attachment information of the order required by the merchant. WeChat and Alipay are only supported. WeChat only supports payment orders within one month for customs declaration. * * @apiVersion 1.0.0 - * @apiGroup Customs_Declaration + * @apiGroup Custom * @apiHeader Accept application/json * @apiHeader Content-Type application/json * @apiParam (PathVariable) {String} partner_code Required, Partner code @@ -911,7 +911,7 @@ * @apiParam (JSON) {String} custom Required, Customs No. * Customs No. * @apiParam (JSON) {String} mch_custom_id Required, Customs record id * @apiParam (JSON) {String} mch_custom_name Required, Customs record name - * @apiParam (JSON) {JSONArray} sub_order Child orders + * @apiParam (JSON) {JSON[]} sub_order Child orders * * @apiParam (SUB_JSON) {String} sub_order_no Child order ID * @apiParam (SUB_JSON) {String=CNY} fee_type=CNY Currency @@ -920,12 +920,12 @@ * * @apiSuccess {String} report_id RoyalPay declare ID * @apiSuccess {String} client_report_id Client declare ID - * @apiSuccess {int} report_status 0:PROCCESSING,1:SUBMITED,2:FAIL,3:SUCCESS + * @apiSuccess {String} report_status Result status: PROCCESSING,SUBMITED,FAILED,SUCCESS * @apiSuccess {String} channel Channel * @apiSuccess {String} custom Customs No. * @apiSuccess {String} mch_custom_no Customs record ID * @apiSuccess {String} mch_custom_name Customs record name - * @apiSuccess {String} order_id Royalpay Order ID + * @apiSuccess {String} order_id RoyalPay Order ID * @apiSuccess {String} transaction_id Channel Order ID * @apiSuccess {String} order_currency Currency * @apiSuccess {Double} order_amount Order Amount @@ -940,24 +940,61 @@ * */ /** - * @api {GET} /api/v1.0/customs/partners/{partner_code}/declare/query/{report_id} Query Declare ID + * @api {PUT} /api/v1.0/customs/partners/{partner_code}/redeclare/report/{client_report_id} Redeclare + * @apiName redeclare_report + * @apiDescription + * Used to resubmit the attachment information of the order required by the merchant. + * + * @apiVersion 1.0.0 + * @apiGroup Custom + * @apiHeader Accept application/json + * @apiHeader Content-Type application/json + * @apiParam (PathVariable) {String} partner_code Required, Partner code + * @apiParam (PathVariable) {String} client_report_id Required, Client declare ID + * @apiUse Sign + * + * @apiSuccess {String} report_id RoyalPay declare ID + * @apiSuccess {String} client_report_id Client declare ID + * @apiSuccess {String} report_status Result status: PROCCESSING,SUBMITED,FAILED,SUCCESS + * @apiSuccess {String} channel Channel + * @apiSuccess {String} custom Customs No. + * @apiSuccess {String} mch_custom_no Customs record ID + * @apiSuccess {String} mch_custom_name Customs record name + * @apiSuccess {String} order_id RoyalPay Order ID + * @apiSuccess {String} transaction_id Channel Order ID + * @apiSuccess {String} order_currency Currency + * @apiSuccess {Double} order_amount Order Amount + * @apiSuccess {String} report_time Declare Time + * @apiSuccess {String} creation_date Create Time + * @apiSuccess {String} last_update_date Update Time + * @apiSuccess {String} error_code Error Code + * @apiSuccess {String} error_msg Error Description + * + * @apiUse GlobalError + * @apiError (ERROR_CODE) ORDER_MISMATCH Order is not belong to this partner + * + */ +/** + * @api {GET} /api/v1.0/customs/partners/{partner_code}/declare/query/{client_report_id} Query Declare ID * @apiName declare_query * @apiDescription * Used by the merchant to check the status of the customs declaration number. * * @apiVersion 1.0.0 - * @apiGroup Customs_Declaration + * @apiGroup Custom * @apiHeader Accept application/json * @apiHeader Content-Type application/json * @apiParam (PathVariable) {String} partner_code Required, Partner code - * @apiParam (PathVariable) {String} report_id Required,RoyalPay Declare ID + * @apiParam (PathVariable) {String} client_report_id Required,Client declare ID * @apiUse Sign * * @apiSuccess {String} return_code Execution result - * @apiSuccess {String} report_status Result status - * @apiSuccess {String} report_id Client declare ID + * @apiSuccess {String} report_status Result status: PROCCESSING,SUBMITED,FAILED,SUCCESS + * @apiSuccess {String} report_id RoyalPay declare ID + * @apiSuccess {String} client_report_id Client declare ID * @apiSuccess {String} return_msg Error Description - * @apiSuccess {String} order_id RoyalPay Order + * @apiSuccess {String} order_id RoyalPay Order ID + * @apiSuccess {String} partner_order_id Partner Order ID * * @apiUse GlobalError * @apiError (ERROR_CODE) ORDER_MISMATCH Order is not belong to this partner diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/beans/ClientRegisterInfo.java b/src/main/java/au/com/royalpay/payment/manage/merchants/beans/ClientRegisterInfo.java index cb493a8a4..67bf76bc9 100644 --- a/src/main/java/au/com/royalpay/payment/manage/merchants/beans/ClientRegisterInfo.java +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/beans/ClientRegisterInfo.java @@ -64,6 +64,9 @@ public class ClientRegisterInfo { private String jdindustry; private String royalpayindustry; private String hfindustry; + private String lakalapayindustry; + private String lakalapaygoods; + private String lakalapaysettle; private String referrer_id; private String referrer_name; @@ -406,4 +409,28 @@ public class ClientRegisterInfo { public String getClient_pay_desc() { return client_pay_desc; } + + public String getLakalapayindustry() { + return lakalapayindustry; + } + + public void setLakalapayindustry(String lakalapayindustry) { + this.lakalapayindustry = lakalapayindustry; + } + + public String getLakalapaygoods() { + return lakalapaygoods; + } + + public void setLakalapaygoods(String lakalapaygoods) { + this.lakalapaygoods = lakalapaygoods; + } + + public String getLakalapaysettle() { + return lakalapaysettle; + } + + public void setLakalapaysettle(String lakalapaysettle) { + this.lakalapaysettle = lakalapaysettle; + } } diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index d212f340d..163f0b5d5 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -1,6 +1,6 @@ spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.schema-name=royalpay_production -spring.datasource.host=192.168.0.18:3306 +spring.datasource.host=127.0.0.1:3306 spring.datasource.url=jdbc:mysql://${spring.datasource.host}/${spring.datasource.schema-name}?useUnicode=true&characterEncoding=utf8&useSSL=false spring.datasource.username=root spring.datasource.password=root diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 42db1c3fc..2a03f41b1 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -136,4 +136,9 @@ app.hanyin-secure.pid=ROYALPAY app.hanyin-secure.sftp-host=180.168.61.86 app.hanyin-secure.sftp-port=28480 app.hanyin-secure.sftp-username=royalpay -app.hanyin-secure.sftp-pwd=royalpay \ No newline at end of file +app.hanyin-secure.sftp-pwd=royalpay + +apple.message.apns.password=13 +android.message.appkey=/opt +android.message.secret=/opy +apple.message.apns.file=/opt diff --git a/src/main/ui/static/commons/filters/commonFilters.js b/src/main/ui/static/commons/filters/commonFilters.js index 7361abf79..db9d7a6a0 100644 --- a/src/main/ui/static/commons/filters/commonFilters.js +++ b/src/main/ui/static/commons/filters/commonFilters.js @@ -34,6 +34,31 @@ define(['../app', 'jquery'], function (app, $) { } }); + + var lakalapayindustry = []; + $.ajax({ + url: '/static/data/lakalapayindustry.json', + method: 'GET', + async: false, + dataType: 'json', + success: function (data) { + lakalapayindustry = data; + + } + }); + + var lakalapaysettle = []; + $.ajax({ + url: '/static/data/lakalapaysettle.json', + method: 'GET', + async: false, + dataType: 'json', + success: function (data) { + lakalapaysettle = data; + + } + }); + var hfindustry = []; $.ajax({ url: '/static/data/hfindustry.json', @@ -128,6 +153,32 @@ define(['../app', 'jquery'], function (app, $) { } }]); + app.filter('partner_lakala_industry', function () { + + return function (lakalapayindustryCode) { + var result = ""; + angular.forEach(lakalapayindustry, function (industry) { + if (industry.value + 0 == lakalapayindustryCode + 0) { + result = industry.label; + } + }); + return result; + } + }); + + app.filter('partner_lakala_settle', function () { + + return function (lakalapaysettleCode) { + var result = ""; + angular.forEach(lakalapaysettle, function (industry) { + if (industry.value + 0 == lakalapaysettleCode + 0) { + result = industry.label; + } + }); + return result; + } + }); + app.filter('partner_hf_industry', ['$http', function ($http) { return function (industryCode) { var industryLabel = ''; @@ -219,4 +270,4 @@ define(['../app', 'jquery'], function (app, $) { return sectorLabel; } }]); -}); \ No newline at end of file +}); diff --git a/src/main/ui/static/data/lakalapaygoods.json b/src/main/ui/static/data/lakalapaygoods.json new file mode 100644 index 000000000..62265f387 --- /dev/null +++ b/src/main/ui/static/data/lakalapaygoods.json @@ -0,0 +1,8 @@ +[ + {"label":"国际展览","value":"国际展览"}, + {"label":"酒店住宿","value":"酒店住宿"}, + {"label":"留学教育","value":"留学教育"}, + {"label":"货物贸易","value":"货物贸易"}, + {"label":"航空机票","value":"航空机票"}, + {"label":"其他","value":"其他"} +] diff --git a/src/main/ui/static/data/lakalapayindustry.json b/src/main/ui/static/data/lakalapayindustry.json new file mode 100644 index 000000000..0f5eecb8c --- /dev/null +++ b/src/main/ui/static/data/lakalapayindustry.json @@ -0,0 +1,8 @@ +[ + {"label":"酒店住宿、旅游服务","value":"223029"}, + {"label":"航空机票","value":"222024"}, + {"label":"货物贸易","value":"122030"}, + {"label":"国际展览","value":"228025"}, + {"label":"留学教育(一年以上)","value":"223022"}, + {"label":"留学教育(一年及以下)","value":"223023"} +] diff --git a/src/main/ui/static/data/lakalapaysettle.json b/src/main/ui/static/data/lakalapaysettle.json new file mode 100644 index 000000000..1eda0dd76 --- /dev/null +++ b/src/main/ui/static/data/lakalapaysettle.json @@ -0,0 +1,13 @@ +[ + {"label":"货物贸易","value":"0100"}, + {"label":"运输","value":"0210"}, + {"label":"自费出境学习","value":"0221"}, + {"label":"因私旅游","value":"0222"}, + {"label":"公务及商务出国","value":"0223"}, + {"label":"旅游项下其他","value":"0225"}, + {"label":"金融和保险服务","value":"0230"}, + {"label":"专有权利使用费和特许费","value":"0240"}, + {"label":"咨询服务","value":"0250"}, + {"label":"其他服务","value":"0260"} +] + diff --git a/src/main/ui/static/payment/partner/partner-manage.js b/src/main/ui/static/payment/partner/partner-manage.js index c5835438a..e1a328b7c 100644 --- a/src/main/ui/static/payment/partner/partner-manage.js +++ b/src/main/ui/static/payment/partner/partner-manage.js @@ -429,6 +429,27 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter }; $scope.loadJDindustry(); + $scope.loadLakalaPayindustry = function () { + $http.get('/static/data/lakalapayindustry.json').then(function (resp) { + $scope.lakalapayindustry = resp.data; + }) + }; + $scope.loadLakalaPayindustry(); + + $scope.loadLakalaPaySettle = function () { + $http.get('/static/data/lakalapaysettle.json').then(function (resp) { + $scope.lakalapaysettle = resp.data; + }) + }; + $scope.loadLakalaPaySettle(); + + $scope.loadLakalaPayGoods = function () { + $http.get('/static/data/lakalapaygoods.json').then(function (resp) { + $scope.lakalapaygoods = resp.data; + }) + }; + $scope.loadLakalaPayGoods(); + $scope.loadRoyalpayindustry = function () { $http.get('/static/data/royalpayindustry.json').then(function (resp) { $scope.royalpayindustry = resp.data; @@ -1150,6 +1171,27 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter }; $scope.loadJDindustry(); + $scope.loadLakalaPayindustry = function () { + $http.get('/static/data/lakalapayindustry.json').then(function (resp) { + $scope.lakalapayindustry = resp.data; + }) + }; + $scope.loadLakalaPayindustry(); + + $scope.loadLakalaPaySettle = function () { + $http.get('/static/data/lakalapaysettle.json').then(function (resp) { + $scope.lakalapaysettle = resp.data; + }) + }; + $scope.loadLakalaPaySettle(); + + $scope.loadLakalaPayGoods = function () { + $http.get('/static/data/lakalapaygoods.json').then(function (resp) { + $scope.lakalapaygoods = resp.data; + }) + }; + $scope.loadLakalaPayGoods(); + $scope.loadRoyalpayindustry = function () { $http.get('/static/data/royalpayindustry.json').then(function (resp) { $scope.royalpayindustry = resp.data; @@ -2540,6 +2582,28 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter }; $scope.loadJDindustry(); + $scope.loadLakalaPayindustry = function () { + $http.get('/static/data/lakalapayindustry.json').then(function (resp) { + $scope.lakalapayindustry = resp.data; + }) + }; + $scope.loadLakalaPayindustry(); + + $scope.loadLakalaPaySettle = function () { + $http.get('/static/data/lakalapaysettle.json').then(function (resp) { + $scope.lakalapaysettle = resp.data; + }) + }; + $scope.loadLakalaPaySettle(); + + $scope.loadLakalaPayGoods = function () { + $http.get('/static/data/lakalapaygoods.json').then(function (resp) { + $scope.lakalapaygoods = resp.data; + }) + }; + $scope.loadLakalaPayGoods(); + + $scope.loadRoyalpayindustry = function () { $http.get('/static/data/royalpayindustry.json').then(function (resp) { $scope.royalpayindustry = resp.data; diff --git a/src/main/ui/static/payment/partner/templates/add_partner.html b/src/main/ui/static/payment/partner/templates/add_partner.html index 0ed591d6e..d55bb9ffc 100644 --- a/src/main/ui/static/payment/partner/templates/add_partner.html +++ b/src/main/ui/static/payment/partner/templates/add_partner.html @@ -979,6 +979,63 @@ on-select="onHfIndustrySelect($selected)"> + +
+ +
+ +
+

+ Required Field

+
+
+
+ +
+ +
+ +
+

+ Required Field

+
+
+
+ +
+ +
+ +
+

+ Required Field

+
+
+
@@ -992,4 +1049,4 @@ - \ No newline at end of file + diff --git a/src/main/ui/static/payment/partner/templates/add_sub_partner_dialog.html b/src/main/ui/static/payment/partner/templates/add_sub_partner_dialog.html index d904012ed..e3a4650d3 100644 --- a/src/main/ui/static/payment/partner/templates/add_sub_partner_dialog.html +++ b/src/main/ui/static/payment/partner/templates/add_sub_partner_dialog.html @@ -743,6 +743,62 @@ on-select="onHfIndustrySelect($selected)"> +
+ +
+ +
+

+ Required Field

+
+
+
+ +
+ +
+ +
+

+ Required Field

+
+
+
+ +
+ +
+ +
+

+ Required Field

+
+
+
@@ -755,4 +811,4 @@ \ No newline at end of file + diff --git a/src/main/ui/static/payment/partner/templates/partner_detail.html b/src/main/ui/static/payment/partner/templates/partner_detail.html index 32dc67aec..43d4ab07f 100644 --- a/src/main/ui/static/payment/partner/templates/partner_detail.html +++ b/src/main/ui/static/payment/partner/templates/partner_detail.html @@ -869,6 +869,33 @@ ng-if="$root.complianceCheck.clientInfo"> +
+ +
+

+ +
+
+
+ +
+

+ +
+
+
+ +
+

+ +
+
diff --git a/src/main/ui/static/payment/partner/templates/partner_edit.html b/src/main/ui/static/payment/partner/templates/partner_edit.html index fb4b73361..694524aee 100644 --- a/src/main/ui/static/payment/partner/templates/partner_edit.html +++ b/src/main/ui/static/payment/partner/templates/partner_edit.html @@ -843,6 +843,63 @@ on-select="onHfIndustrySelect($selected)"> + +
+ +
+ +
+

+ Required Field

+
+
+
+ +
+ +
+ +
+

+ Required Field

+
+
+
+ +
+ +
+ +
+

+ Required Field

+
+
+
diff --git a/src/main/ui/static/templates/cbpay/lakala/v1/gateway_jsapi.js b/src/main/ui/static/templates/cbpay/lakala/v1/gateway_jsapi.js index 4a85c55fc..196687505 100644 --- a/src/main/ui/static/templates/cbpay/lakala/v1/gateway_jsapi.js +++ b/src/main/ui/static/templates/cbpay/lakala/v1/gateway_jsapi.js @@ -77,8 +77,8 @@ $(document).ready(function () { } var select_currency = $('#select_currency').val(); var remark = $('#remark').val(); - var buyForexKind = $('#buyForexKind').val(); - var jsonData = {user_id: customer_id, price: price, product_name: product,gateway_type: 9,description: remark,buy_forex_kind: buyForexKind,currency: select_currency}; + // var buyForexKind = $('#buyForexKind').val(); + var jsonData = {user_id: customer_id, price: price, product_name: product,gateway_type: 9,description: remark,currency: select_currency}; var commit = confirm("是否确认提交支付"); if (commit) { $('#commit-btn').addClass('hidden'); @@ -95,10 +95,11 @@ $(document).ready(function () { $('#commit-btn').removeClass('hidden'); $('#commit-btn-loading').addClass('hidden'); }else { - const $form = $(res.formString); - $('body').append($form); - $form.submit(); - $('body').removeChildren($form); + location.href = res.pay_url+'?'+res.sign_url; + // const $form = $(res.formString); + // $('body').append($form); + // $form.submit(); + // $('body').removeChildren($form); } }, error: function (jqXHR) { diff --git a/src/main/ui/static/templates/cbpay/lakala/v1/gateway_jsapi_phone.js b/src/main/ui/static/templates/cbpay/lakala/v1/gateway_jsapi_phone.js index da5a814c8..16cf505d9 100644 --- a/src/main/ui/static/templates/cbpay/lakala/v1/gateway_jsapi_phone.js +++ b/src/main/ui/static/templates/cbpay/lakala/v1/gateway_jsapi_phone.js @@ -27,9 +27,9 @@ $(document).ready(function () { $('.surcharge').hide(); $('#commit-btn').click(function () { var currency = $('#select_currency option:selected').val(); - var buy_forex_kind = $('#buy_forex_kind option:selected').val(); var price = $('#price').val(); - var remark = $('#product_name option:selected').val() + '-' + $('#remark').val(); + var product = $('#product').val(); + var remark = $('#remark').val(); if (price == null || onChange(price, 0)) { alert('请填写订单金额'); return; @@ -38,17 +38,21 @@ $(document).ready(function () { alert('金额不能为0'); return; } + if (product == null || product.length === 0) { + alert('请填写真实的商品名称'); + return; + } $('#commit-btn').addClass('hidden'); $('#commit-btn-loading').removeClass('hidden'); var jsonData = { - customer_id: window.customer_id, + user_id: window.customer_id, price: price, currency: currency, - buy_forex_kind: buy_forex_kind, gateway_type: 8, - description:remark + description:remark, + product_name:product }; $.ajax({ @@ -63,10 +67,11 @@ $(document).ready(function () { $('#commit-btn').removeClass('hidden'); $('#commit-btn-loading').addClass('hidden'); }else { - const $form = $(res.formString); - $('body').append($form); - $form.submit(); - $('body').removeChildren($form); + location.href = res.pay_url+'?'+res.sign_url; + // const $form = $(res.formString); + // $('body').append($form); + // $form.submit(); + // $('body').removeChildren($form); } }, error: function (jqXHR) {