diff --git a/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java index 0417d6f6d..714b864d4 100644 --- a/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java @@ -296,6 +296,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService { sysClient.put("merchant_id", availableMerchant.getMerchantId()); sysClient.put("sub_merchant_id",tempSubMerchantId); sysClient.put("common_sub_merchant_id",1); + sysClient.put("skip_clearing",1); sysClient.put("credential_code", RandomStringUtils.random(32, true, true)); clientMapper.save(sysClient); @@ -334,6 +335,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService { JSONObject clientConfig = new JSONObject(); clientConfig.put("client_id",clientId); + clientConfig.put("skip_clearing",1); clientConfig.put("client_moniker",clientMoniker); clientConfig.put("clean_days",apply.getIntValue("clean_days")); clientConfig.put("common_sub_merchant_id",1); diff --git a/src/main/ui/static/dashboard/templates/partner_dashboard.html b/src/main/ui/static/dashboard/templates/partner_dashboard.html index ab68d1b24..29d707cde 100644 --- a/src/main/ui/static/dashboard/templates/partner_dashboard.html +++ b/src/main/ui/static/dashboard/templates/partner_dashboard.html @@ -232,14 +232,23 @@
-

-  Verify your email address {{currentUser.client.contact_email}} - - - -  Send to {{currentUser.client.contact_email}} - +

+  Verify your email address {{currentUser.client.contact_email}} + + +  Send to {{currentUser.client.contact_email}} + + +

+ +

+ +  Your email address {{currentUser.client.contact_email}} has been verified + +

@@ -252,7 +261,7 @@

  - + Complete your company information

diff --git a/src/main/ui/static/payment/partner/partner.js b/src/main/ui/static/payment/partner/partner.js index fab009d85..45d74b963 100644 --- a/src/main/ui/static/payment/partner/partner.js +++ b/src/main/ui/static/payment/partner/partner.js @@ -15,10 +15,6 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload'], funct return $http.get('/client/partner_info'); }] } - }).state('basic.payment_info_edit', { - url: '/payment/edit', - templateUrl: '/static/payment/partner/templates/client_partner_edit.html', - controller: 'clientPaymentInfoEditCtrl' }).state('basic.payment_info', { url: '/payment', templateUrl: '/static/payment/partner/templates/client_payment_info.html', @@ -59,46 +55,11 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload'], funct controller: 'clientDeviceCtrl' }) }]); - app.controller('clientPartnerDetailCtrl', ['$scope', '$http', 'partner','industryMap','businessStructuresMap', function ($scope, $http, partner,industryMap,businessStructuresMap) { + app.controller('clientPartnerDetailCtrl', ['$scope', '$http', 'partner','industryMap','businessStructuresMap','commonDialog','Upload','$state', function ($scope, $http, partner,industryMap,businessStructuresMap,commonDialog,Upload,$state) { $scope.business_structures = businessStructuresMap.configs(); $scope.industries = industryMap.configs(); $scope.partner = partner.data; - //修改邮箱 - $scope.updateEmail = function () { - $http.put('/client/partner_info/compliance_audit').then( - ); - }; - - $scope.commitToCompliance = function () { - $http.get('/client/partner_info/compliance/files').then(function (resp) { - $scope.complianceFiles = resp.data; - if($scope.complianceFiles.client_id_file == null||$scope.complianceFiles.client_bank_file == null || $scope.complianceFiles.client_company_file == null){ - alert("请前去完善合规资料,再进行提交"); - return; - } - if($scope.partner.business_structure == null ||$scope.partner.logo_url == null || $scope.partner.description == null || (($scope.partner.store_photo == null || $scope.partner.company_photo == null) && $scope.currentUser.client.company_website == null)){ - alert("请前去完善商户资料,再进行提交"); - return; - } - if(($scope.partner.business_structure == "Company" && $scope.partner.acn == null) || ($scope.partner.business_structure != "Company" && $scope.partner.abn == null)){ - alert("请前去完善商户资料,再进行提交"); - return; - } - if(!$scope.partner.mail_confirm){ - alert("请验证邮箱后,再进行提交"); - return; - } - $http.post('/client/partner_info/compliance_audit').then( - ); - }); - } - }]); - app.controller('clientPaymentInfoEditCtrl', ['$scope', '$http','industryMap', 'commonDialog','$state','Upload',function ($scope, $http,industryMap,commonDialog,$state,Upload) { - /* $scope.loadClient = function () { - $http.get('/client/partner_info').then(function (resp) { - $scope.partner = resp.data; - }) - };*/ + $scope.partner.partner_type = $scope.partner.website ? 'website' : 'photo'; $scope.uploadLogo = function (file) { if (file != null) { @@ -199,6 +160,36 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload'], funct commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'}) }); }; + //修改邮箱 + $scope.updateEmail = function () { + $http.put('/client/partner_info/compliance_audit').then( + ); + }; + + $scope.commitToCompliance = function () { + $http.get('/client/partner_info/compliance/files').then(function (resp) { + $scope.complianceFiles = resp.data; + if($scope.complianceFiles.client_id_file == null||$scope.complianceFiles.client_bank_file == null || $scope.complianceFiles.client_company_file == null){ + commonDialog.alert({title: 'Message', content: '请前去完善合规资料,再进行提交!', type: 'info'}); + return; + } + if($scope.partner.business_structure == null ||$scope.partner.logo_url == null || $scope.partner.description == null || (($scope.partner.store_photo == null || $scope.partner.company_photo == null) && $scope.currentUser.client.company_website == null)){ + commonDialog.alert({title: 'Message', content: '请前去完善商户资料,再进行提交!', type: 'info'}); + return; + } + if(($scope.partner.business_structure == "Company" && $scope.partner.acn == null) || ($scope.partner.business_structure != "Company" && $scope.partner.abn == null)){ + commonDialog.alert({title: 'Message', content: '请前去完善商户资料,再进行提交!', type: 'info'}); + return; + } + if(!$scope.partner.mail_confirm){ + commonDialog.alert({title: 'Message', content: '请验证邮箱后,再进行提交!', type: 'info'}); + return; + } + $http.post('/client/partner_info/compliance_audit').then( + commonDialog.alert({title: 'Success', content: '已提交至合规,请耐心等待审核!', type: 'info'}) + ); + }); + } }]); app.controller('clientComplianceFilesCtrl', ['$scope', '$http', '$rootScope', 'commonDialog', '$state', 'Upload', 'file', function ($scope, $http, $rootScope, commonDialog, $state, Upload, file) { diff --git a/src/main/ui/static/payment/partner/templates/client_partner_detail.html b/src/main/ui/static/payment/partner/templates/client_partner_detail.html index 0dfd9e30d..608371ab8 100644 --- a/src/main/ui/static/payment/partner/templates/client_partner_detail.html +++ b/src/main/ui/static/payment/partner/templates/client_partner_detail.html @@ -23,7 +23,7 @@ (自助申请)待审核(材料已提交) -
+
@@ -43,110 +43,370 @@ Clearing Config -
  • +
  • Compliance files
  • +
    +
    +
    + Partner Basic Information +
    +
    +
    +
    + -
    -
    - Partner Basic Information -
    +
    +

    +
    +
    +
    + + +
    +

    +
    +
    +
    + + +
    +

    +
    +
    +
    + + +
    +

    +
    +
    +
    + + +
    +

    +
    +
    +
    + +
    + +
    +
    +
    + + +
    +

    +
    +
    +
    + +
    +

    +
    +
    +
    + + +
    +

    +
    +
    +
    + + +
    +

    +
    +
    +
    + +
    1:  +
    + + + +
    +
    + +
    2:  +
    + + + +
    +
    +
    +
    + + +
    + +
    +
    +
    + + +
    +

    +
    +
    +
    + + +
    +

    +
    +
    +
    + + +
    +

    +
    +
    +
    +
    +
    + +
    +
    Partner Contact Information
    +
    +
    +
    + + +
    +

    +
    +
    +
    + + +
    +

    +
    +
    +
    + +
    +

    + + +

    +
    + +
    + +
    +
    + +
    +
    + +
    +
    +
    +
    +
    + +
    +
    Address Information
    +
    +
    + +
    + + +
    +

    +
    +
    +
    + + +
    +

    +
    +
    +
    + + +
    +

    +
    +
    +
    + + +
    +

    +
    +
    +
    + + +
    +

    +
    +
    +
    +
    +
    +
    +
    +
    Partner Basic Information
    -
    +
    - - -
    + +

    -
    +

    -
    +

    -
    +
    - -
    +

    -
    - - -
    -

    -
    -
    -
    - -
    - +
    + +
    +
    -
    - - -
    -

    +
    + +
    +
    + +
    + +
    -
    - -
    -

    +
    + +
    + +
    +

    Less Than 20 + Characters(including symbols and spaces)

    +
    -
    - - -
    -

    +
    + +
    + +
    +

    Less Than 20 + Characters(including symbols and spaces)

    +
    -
    - -
    -

    +
    + +
    + +

    If the partner is a offline shop then a photo of shop is + required while an online store shall choose company website

    +

    + 只要有可能产生线下交易(商户静态码、POS),就必须上传照片,否则支付宝会禁止交易

    +
    +

    Required Field

    +
    -
    - -
    1:  -
    - - - +
    + +
    +
    1:  +
    + +
    - -
    2:  -
    - - - +
    +
    2:  +
    + +
    -
    - - -
    - +
    + +
    + +
    +

    Required Field

    +

    Less Than 200 + Characters(including symbols and spaces)

    +
    @@ -156,113 +416,30 @@

    -
    - - -
    -

    -
    -
    -
    - - -
    -

    -
    -
    -
    -
    -
    - -
    -
    Partner Contact Information
    -
    -
    -
    - - -
    -

    -
    -
    -
    - - -
    -

    -
    -
    -
    - +
    +
    -

    - - -

    -
    - -
    - -
    -
    - -
    + +
    +

    Less Than 200 + Characters(including symbols and spaces)

    - -
    -
    -
    -
    -
    - -
    -
    Address Information
    -
    -
    - -
    - - -
    -

    -
    -
    -
    - - -
    -

    -
    -
    -
    - - -
    -

    -
    -
    -
    - - -
    -

    -
    - - -
    -

    -
    +
    + + Back
    -
    +
    + +
    diff --git a/src/main/ui/static/payment/partner/templates/client_partner_edit.html b/src/main/ui/static/payment/partner/templates/client_partner_edit.html deleted file mode 100644 index c1beb92a3..000000000 --- a/src/main/ui/static/payment/partner/templates/client_partner_edit.html +++ /dev/null @@ -1,176 +0,0 @@ - -
    -
    Partner Basic Information
    -
    -
    -
    - -
    -

    -
    -
    -
    - - -
    -

    -
    -
    -
    - - -
    -

    -
    -
    -
    - -
    -

    -
    -
    -
    - -
    - -
    -
    -
    - -
    -
    - -
    - - -
    -
    -
    - -
    - -
    -

    Less Than 20 - Characters(including symbols and spaces)

    -
    -
    -
    -
    - -
    - -
    -

    Less Than 20 - Characters(including symbols and spaces)

    -
    -
    -
    - -
    - -
    - -

    If the partner is a offline shop then a photo of shop is - required while an online store shall choose company website

    -

    - 只要有可能产生线下交易(商户静态码、POS),就必须上传照片,否则支付宝会禁止交易

    -
    -

    Required Field

    -
    -
    -
    -
    - -
    -
    1:  - -
    - - -
    -
    -
    2:  - -
    - - -
    -
    -
    - -
    - -
    -

    Required Field

    -

    Less Than 200 - Characters(including symbols and spaces)

    -
    -
    -
    -
    - - -
    -

    -
    -
    -
    - -
    - -
    -

    Less Than 200 - Characters(including symbols and spaces)

    -
    -
    -
    -
    -
    -
    - -
    - - Back -