初始提交
This commit is contained in:
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
1
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/index.js
generated
vendored
Normal file
1
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/index.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
10
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/package.json
generated
vendored
Normal file
10
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/package.json
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "uni-config-center",
|
||||
"version": "0.0.3",
|
||||
"description": "配置中心",
|
||||
"main": "index.js",
|
||||
"keywords": [],
|
||||
"author": "DCloud",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {}
|
||||
}
|
||||
53
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-id/config.json
generated
vendored
Normal file
53
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-id/config.json
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"passwordSecret": "passwordSecret-demo",
|
||||
"tokenSecret": "tokenSecret-demo",
|
||||
"tokenExpiresIn": 7200,
|
||||
"tokenExpiresThreshold": 600,
|
||||
"passwordErrorLimit": 6,
|
||||
"bindTokenToDevice": false,
|
||||
"passwordErrorRetryTime": 3600,
|
||||
"autoSetInviteCode": true,
|
||||
"forceInviteCode": false,
|
||||
"preferedAppPlatform": "app-plus",
|
||||
"app": {
|
||||
"tokenExpiresIn": 2592000,
|
||||
"oauth" : {
|
||||
"weixin" : {
|
||||
"appid" : "wx99a711164caf979a",
|
||||
"appsecret" : "Sanyitec@123456"
|
||||
},
|
||||
"apple": {
|
||||
"bundleId": "your APP bundleId"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mp-weixin": {
|
||||
"oauth" : {
|
||||
"weixin" : {
|
||||
"appid" : "wx99a711164caf979a",
|
||||
"appsecret" : "Sanyitec@123456"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mp-alipay": {
|
||||
"oauth" : {
|
||||
"alipay" : {
|
||||
"appid" : "alipay appid",
|
||||
"privateKey" : "alipay privateKey"
|
||||
}
|
||||
}
|
||||
},
|
||||
"service": {
|
||||
"sms": {
|
||||
"name": "棉花糖",
|
||||
"codeExpiresIn": 300,
|
||||
"smsKey": "72fcc07e9b2e0a81779db4b0a96cb771",
|
||||
"smsSecret": "562930097dbc3342c7441f7870b477e7"
|
||||
},
|
||||
"univerify": {
|
||||
"appid":"your appid",
|
||||
"apiKey": "your apiKey",
|
||||
"apiSecret": "your apiSecret"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIDrDCCApSgAwIBAgIQICIJA4jnNaEaLlgYd7b/3DANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UE
|
||||
BhMCQ04xFjAUBgNVBAoMDUFudCBGaW5hbmNpYWwxIDAeBgNVBAsMF0NlcnRpZmljYXRpb24gQXV0
|
||||
aG9yaXR5MTkwNwYDVQQDDDBBbnQgRmluYW5jaWFsIENlcnRpZmljYXRpb24gQXV0aG9yaXR5IENs
|
||||
YXNzIDIgUjEwHhcNMjIwOTAzMTQ0NTIzWhcNMjcwOTAyMTQ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AMCAQYwDQYJKoZIhvcNAQELBQADggIB
|
||||
AIQ8TzFy4bVIVb8+WhHKCkKNPcJe2EZuIcqvRoi727lZTJOfYy/JzLtckyZYfEI8J0lasZ29wkTt
|
||||
a1IjSo+a6XdhudU4ONVBrL70U8Kzntplw/6TBNbLFpp7taRALjUgbCOk4EoBMbeCL0GiYYsTS0mw
|
||||
7xdySzmGQku4GTyqutIGPQwKxSj9iSFw1FCZqr4VP4tyXzMUgc52SzagA6i7AyLedd3tbS6lnR5B
|
||||
L+W9Kx9hwT8L7WANAxQzv/jGldeuSLN8bsTxlOYlsdjmIGu/C9OWblPYGpjQQIRyvs4Cc/mNhrh+
|
||||
14EQgwuemIIFDLOgcD+iISoN8CqegelNcJndFw1PDN6LkVoiHz9p7jzsge8RKay/QW6C03KNDpWZ
|
||||
EUCgCUdfHfo8xKeR+LL1cfn24HKJmZt8L/aeRZwZ1jwePXFRVtiXELvgJuM/tJDIFj2KD337iV64
|
||||
fWcKQ/ydDVGqfDZAdcU4hQdsrPWENwPTQPfVPq2NNLMyIH9+WKx9Ed6/WzeZmIy5ZWpX1TtTolo6
|
||||
OJXQFeItMAjHxW/ZSZTok5IS3FuRhExturaInnzjYpx50a6kS34c5+c8hYq7sAtZ/CNLZmBnBCFD
|
||||
aMQqT8xFZJ5uolUaSeXxg7JFY1QsYp5RKvj4SjFwCGKJ2+hPPe9UyyltxOidNtxjaknOCeBHytOr
|
||||
-----END CERTIFICATE-----
|
||||
88
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/alipay/alipayRootCert.crt
generated
vendored
Normal file
88
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/alipay/alipayRootCert.crt
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIBszCCAVegAwIBAgIIaeL+wBcKxnswDAYIKoEcz1UBg3UFADAuMQswCQYDVQQG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wfaVRydXNDaGluYSBDbGFzcyAyIFJv
|
||||
b3QgQ0EgLSBHMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOPPShpV
|
||||
nJbMqqCw6Bz1kehnoPst9pkr0V9idOwU2oyS47/HjJXk9Rd5a9xfwkPO88trUpz5
|
||||
4GmmwspDXjVFu9L0eFaRuH3KMha1Ak01citbF7cQLJlS7XI+tpkTGHEY5pt3EsQg
|
||||
wykfZl/A1jrnSkspMS997r2Gim54cwz+mTMgDRhZsKK/lbOeBPpWtcFizjXYCqhw
|
||||
WktvQfZBYi6o4sHCshnOswi4yV1p+LuFcQ2ciYdWvULh1eZhLxHbGXyznYHi0dGN
|
||||
z+I9H8aXxqAQfHVhbdHNzi77hCxFjOy+hHrGsyzjrd2swVQ2iUWP8BfEQqGLqM1g
|
||||
KgWKYfcTGdbPB1MCAwEAAaNjMGEwHQYDVR0OBBYEFG/oAMxTVe7y0+408CTAK8hA
|
||||
uTyRMB8GA1UdIwQYMBaAFG/oAMxTVe7y0+408CTAK8hAuTyRMA8GA1UdEwEB/wQF
|
||||
MAMBAf8wDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQBLnUTfW7hp
|
||||
emMbuUGCk7RBswzOT83bDM6824EkUnf+X0iKS95SUNGeeSWK2o/3ALJo5hi7GZr3
|
||||
U8eLaWAcYizfO99UXMRBPw5PRR+gXGEronGUugLpxsjuynoLQu8GQAeysSXKbN1I
|
||||
UugDo9u8igJORYA+5ms0s5sCUySqbQ2R5z/GoceyI9LdxIVa1RjVX8pYOj8JFwtn
|
||||
DJN3ftSFvNMYwRuILKuqUYSHc2GPYiHVflDh5nDymCMOQFcFG3WsEuB+EYQPFgIU
|
||||
1DHmdZcz7Llx8UOZXX2JupWCYzK1XhJb+r4hK5ncf/w8qGtYlmyJpxk3hr1TfUJX
|
||||
Yf4Zr0fJsGuv
|
||||
-----END CERTIFICATE-----
|
||||
24
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/alipay/appCertPublicKey.crt
generated
vendored
Normal file
24
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/alipay/appCertPublicKey.crt
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIEqzCCA5OgAwIBAgIQICIJBDFQuxnQ1xVlBN16XTANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UE
|
||||
BhMCQ04xFjAUBgNVBAoMDUFudCBGaW5hbmNpYWwxIDAeBgNVBAsMF0NlcnRpZmljYXRpb24gQXV0
|
||||
aG9yaXR5MTkwNwYDVQQDDDBBbnQgRmluYW5jaWFsIENlcnRpZmljYXRpb24gQXV0aG9yaXR5IENs
|
||||
YXNzIDEgUjEwHhcNMjIwOTA0MDE1NTU4WhcNMjcwOTAzMDE1NTU4WjBzMQswCQYDVQQGEwJDTjEn
|
||||
MCUGA1UECgwe5YyX5Lqs5LiJ6YKR56eR5oqA5pyJ6ZmQ5YWs5Y+4MQ8wDQYDVQQLDAZBbGlwYXkx
|
||||
KjAoBgNVBAMMITIwODgzMzEyMzczODA5NDMtMjAyMTAwMzE0NjY0MDU4OTCCASIwDQYJKoZIhvcN
|
||||
AQEBBQADggEPADCCAQoCggEBAJvja9WyHcBxD2RguR3/b+A9/BhW+XeK330GhFcI/fQ87nFDrOtd
|
||||
xHbsmMX352bkVZ5zcDormtkiCP9jSqSlp/WYSVJmP+Kw5lDDXDrNlVnOkf/ITT7VriVRVKUdrxMH
|
||||
I6+g9aj66f4GzL0eyX7/fhcz/Fm5iAGLKyg5cZODn0Uoge/ho6WS78xeS6YAydkIziQR7wxhTaTj
|
||||
Xy22lwtPoxVGtuxgrJgCOPP0hLwbnivDy1PCAa+9VAjBRzOHY/xw92VthbUP0lGQSq1pfHJI4gLp
|
||||
SW4Bd+IiV57NATMs3aYfifnmKrmo7EYIVkn4SHpFdqzBsCNY+qGQaUdc3zphNQECAwEAAaOCASkw
|
||||
ggElMB8GA1UdIwQYMBaAFHEH4gRhFuTl8mXrMQ/J4PQ8mtWRMB0GA1UdDgQWBBQ0QlIkKrlYgXAO
|
||||
/FrbS3R5YXhKpTBABgNVHSAEOTA3MDUGB2CBHAFuAQEwKjAoBggrBgEFBQcCARYcaHR0cDovL2Nh
|
||||
LmFsaXBheS5jb20vY3BzLnBkZjAOBgNVHQ8BAf8EBAMCBsAwLwYDVR0fBCgwJjAkoCKgIIYeaHR0
|
||||
cDovL2NhLmFsaXBheS5jb20vY3JsNjkuY3JsMGAGCCsGAQUFBwEBBFQwUjAoBggrBgEFBQcwAoYc
|
||||
aHR0cDovL2NhLmFsaXBheS5jb20vY2E2LmNlcjAmBggrBgEFBQcwAYYaaHR0cDovL2NhLmFsaXBh
|
||||
eS5jb206ODM0MC8wDQYJKoZIhvcNAQELBQADggEBAJXsi7eS3R75xN2/oRgLfWpe5bvgQUGsKU49
|
||||
iFhhwIjqcwj9/r83BQDFZkQLNTvtk8OHGho4vtLdwm0eKJmPICoNy6ZZ0ltL+TOBgFqgmrXVC2HE
|
||||
nycaiaxcDfaTMAPZ196qSadWpEi5Zj3bYjfzkeGmlMLunCY1MSOi51vpUl1/E5W+K3Wjto1gjvVy
|
||||
41DDjIbtlhJGHU6B+/stdUL6i5RneH0RI23zyzomtTRqLruk3XuEM7LZO26836NQG1Uui1/jJttM
|
||||
9EN/RtGzDfSO7W70la3SAutcs3l5yGgXjWRmTPgXrkyG+zdLpSUMTsW+tL0qpGdGibb8ZW6e2CYA
|
||||
LlE=
|
||||
-----END CERTIFICATE-----
|
||||
1
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/alipay/【重要】这里放支付宝证书.md
generated
vendored
Normal file
1
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/alipay/【重要】这里放支付宝证书.md
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
[支付宝支付证书生成教程](https://docs.qq.com/doc/DWVBlVkZ1Z21SZFpS)
|
||||
177
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/config.js
generated
vendored
Normal file
177
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/config.js
generated
vendored
Normal file
@@ -0,0 +1,177 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
module.exports = {
|
||||
/**
|
||||
* 统一支付回调地址,格式为 "服务空间SpaceID":"URL化完整地址"
|
||||
* 这里的本地开发并不是指 http://localhost:8080/ 的地址,而是另外一个服务空间的ULR化地址(如果你本地开发和线上环境共用同一个服务空间则只需要填线上环境的即可)
|
||||
* 回调的云函数地址,建议填 /http/vk-pay,因为vk-pay云函数已经写好了回调处理的逻辑,否则你需要自己写全部的回调逻辑。
|
||||
* 其中vk-pay是可以改名的,只需要修改 uniCloud/cloudfunctions/vk-pay/package.json 文件中的 "path": "/http/vk-pay", 把 /http/vk-pay 改成 /http/xxxx 即可(需要重新上传云函数vk-pay)。
|
||||
*/
|
||||
"notifyUrl": {
|
||||
// 本地开发环境,如果你本地开发和线上环境共用同一个服务空间则只需要填线上环境的即可
|
||||
"8294a846-5bc7-4ea2-bca4-078cd399a7c7": "https://8294a846-5bc7-4ea2-bca4-078cd399a7c7.bspapp.com/http/vk-pay",
|
||||
// 线上正式环境
|
||||
"mp-8294a846-5bc7-4ea2-bca4-078cd399a7c7 ": "https://mp-8294a846-5bc7-4ea2-bca4-078cd399a7c7.bspapp.com/http/vk-pay"
|
||||
},
|
||||
// 此密钥主要用于跨云函数回调或回调java、php等外部系统时的通信密码(建议修改成自己的,最好64位以上,更加安全)
|
||||
// 详细介绍:https://vkdoc.fsq.pub/vk-uni-pay/uniCloud/pay-notify.html#特别注意
|
||||
"notifyKey": "5fb2cd73c7b53918728417c50762e6d45fb2cd73c7b53918728417c50762e6d4",
|
||||
// 自动删除N天前的订单(未付款的订单),若此值设为0,则代表不删除未付款订单,如果你的支付统计需要统计需要统计未付款订单数据,则此处可以填0
|
||||
"autoDeleteExpiredOrders": 0, // 0代表永不删除,3代表3天(单位:天)
|
||||
/**
|
||||
* 微信
|
||||
* 公共参数说明
|
||||
* appId 微信后台的appId
|
||||
* secret 微信后台的secret
|
||||
* mchId 微信支付的商户id
|
||||
* key 微信支付V2版本的api密钥
|
||||
* pfx 微信支付V2版本的p12证书(apiclient_cert.p12)(退款需要)配置示例:"pfx": fs.readFileSync(__dirname + '/wxpay/apiclient_cert.p12'),
|
||||
* v3Key 微信支付V3版本的api密钥
|
||||
* appCertPath 微信支付V3版本需要用到的证书(apiclient_cert.pem)(退款需要)配置示例:"appCertPath": path.join(__dirname, 'wxpay/apiclient_cert.pem'), // v3需要用到的证书
|
||||
* appPrivateKeyPath 微信支付V3版本需要用到的证书(apiclient_key.pem)(退款需要)配置示例:"appPrivateKeyPath": path.join(__dirname, 'wxpay/apiclient_key.pem'), // v3需要用到的证书
|
||||
* version 启用支付的版本 2代表v2版本 3 代表v3版本,默认是2
|
||||
*/
|
||||
"wxpay": {
|
||||
// 微信 - 小程序支付(微信支付申请JSAPI支付)
|
||||
"mp-weixin": {
|
||||
"appId": "wx99a711164caf979a",
|
||||
"secret": "Sanyitec@123456",
|
||||
"mchId": "1625738967",
|
||||
"key": "sanyitec525214hmx123456789012345",
|
||||
"pfx": fs.readFileSync(__dirname + '/wxpay/apiclient_cert.p12'),
|
||||
"version": 2
|
||||
},
|
||||
// 微信 - APP支付(微信支付申请APP支付)
|
||||
"app-plus": {
|
||||
"appId": "wx99a711164caf979a",
|
||||
"secret": "Sanyitec@123456",
|
||||
"mchId": "1625738967",
|
||||
"key": "sanyitec525214hmx123456789012345",
|
||||
"pfx": fs.readFileSync(__dirname + '/wxpay/apiclient_cert.p12'),
|
||||
"version": 2
|
||||
},
|
||||
// 微信 - H5电脑网站二维码支付(微信支付申请Native支付)
|
||||
"h5": {
|
||||
"appId": "wx99a711164caf979a",
|
||||
"secret": "Sanyitec@123456",
|
||||
"mchId": "1625738967",
|
||||
"key": "sanyitec525214hmx123456789012345",
|
||||
"pfx": fs.readFileSync(__dirname + '/wxpay/apiclient_cert.p12'),
|
||||
"version": 2
|
||||
},
|
||||
// 微信 - 公众号支付(微信支付申请JSAPI支付)
|
||||
"h5-weixin": {
|
||||
"appId": "wx99a711164caf979a",
|
||||
"secret": "Sanyitec@123456",
|
||||
"mchId": "1625738967",
|
||||
"key": "sanyitec525214hmx123456789012345",
|
||||
"pfx": fs.readFileSync(__dirname + '/wxpay/apiclient_cert.p12'),
|
||||
"version": 2
|
||||
},
|
||||
// 微信 - 手机外部浏览器H5支付(微信支付申请H5支付)
|
||||
"mweb": {
|
||||
"appId": "",
|
||||
"secret": "",
|
||||
"mchId": "",
|
||||
"key": "",
|
||||
"pfx": fs.readFileSync(__dirname + '/wxpay/apiclient_cert.p12'),
|
||||
// 场景信息,必填
|
||||
"sceneInfo": {
|
||||
"h5_info": {
|
||||
"type": "Wap", // 此值固定Wap
|
||||
"wap_url": "https://www.xxxxxx.com", // 你的H5首页地址,必须和你发起支付的页面的域名一致。
|
||||
"wap_name": "网站名称", // 你的H5网站名称
|
||||
}
|
||||
},
|
||||
"version": 2
|
||||
},
|
||||
// 微信 - 转账到零钱(固定v3版本)(微信支付申请企业转账到零钱API)
|
||||
"transfer": {
|
||||
"appId": "",
|
||||
"mchId": "",
|
||||
"apiV3key": "", // api v3密钥
|
||||
"appCertSn": "", // 商家应用证书的序列号
|
||||
"privateKey": "", // 商家私钥
|
||||
"wxpayPublicCertSn": "", // 微信支付公钥证书的序列号
|
||||
"wxpayPublicCertContent": "", // 微信支付公钥内容
|
||||
},
|
||||
},
|
||||
/**
|
||||
* 支付宝(证书记得选java版本)
|
||||
* 公共参数说明
|
||||
* mchId 支付宝商户id 2088开头的那个(此参数可以不填)
|
||||
* appId 支付宝开放平台的应用appId
|
||||
* privateKey 应用私钥
|
||||
* alipayPublicCertPath 支付宝公钥证书路径地址 与之对应的 alipayPublicCertContent 为支付宝公钥证书内容(值可以是字符串也可以是Buffer)
|
||||
* alipayRootCertPath 支付宝根证书路径地址 与之对应的 alipayRootCertContent 为支付宝根证书内容(值可以是字符串也可以是Buffer)
|
||||
* appCertPath 应用证书路径地址 与之对应的 appCertPathContent 为应用证书内容(值可以是字符串也可以是Buffer)
|
||||
* sandbox 是否沙箱模式 true 沙箱模式 false 正常模式
|
||||
*/
|
||||
"alipay": {
|
||||
// 支付宝 - 小程序支付配置
|
||||
"mp-alipay": {
|
||||
"appId": "",
|
||||
"privateKey":"",
|
||||
"alipayPublicCertPath": path.join(__dirname, 'alipay/alipayCertPublicKey_RSA2.crt'),
|
||||
"alipayRootCertPath": path.join(__dirname, 'alipay/alipayRootCert.crt'),
|
||||
"appCertPath": path.join(__dirname, 'alipay/appCertPublicKey.crt'),
|
||||
"sandbox": false
|
||||
},
|
||||
// 支付宝 - APP支付配置
|
||||
"app-plus": {
|
||||
"mchId": "2088331237380943",
|
||||
"appId": "2021003146630597",
|
||||
"privateKey": "MIIEwAIBADANBgkqhkiG9w0BAQEFAASCBKowggSmAgEAAoIBAQCb42vVsh3AcQ9kYLkd/2/gPfwYVvl3it99BoRXCP30PO5xQ6zrXcR27JjF9+dm5FWec3A6K5rZIgj/Y0qkpaf1mElSZj/isOZQw1w6zZVZzpH/yE0+1a4lUVSlHa8TByOvoPWo+un+Bsy9Hsl+/34XM/xZuYgBiysoOXGTg59FKIHv4aOlku/MXkumAMnZCM4kEe8MYU2k418ttpcLT6MVRrbsYKyYAjjz9IS8G54rw8tTwgGvvVQIwUczh2P8cPdlbYW1D9JRkEqtaXxySOIC6UluAXfiIleezQEzLN2mH4n55iq5qOxGCFZJ+Eh6RXaswbAjWPqhkGlHXN86YTUBAgMBAAECggEBAIwW6R5mbcQ2Fj3/ifxCRDjBm14IMzHRlBvYEm/gvc+SPjl9NtVhM6An6PbnXIWjpqm5Vd6Atyx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wE97z2yBnhqWtAbbiYjqikStYRSxxH0qERjNbz6gkp2yDuIUX94BrnvhWgUm0u0c=",
|
||||
"alipayPublicCertPath": path.join(__dirname, 'alipay/alipayCertPublicKey_RSA2.crt'),
|
||||
"alipayRootCertPath": path.join(__dirname, 'alipay/alipayRootCert.crt'),
|
||||
"appCertPath": path.join(__dirname, 'alipay/appCertPublicKey.crt'),
|
||||
"sandbox": false
|
||||
},
|
||||
// 支付宝 - H5支付配置(包含:网站二维码、手机H5,需申请支付宝当面付接口权限)
|
||||
"h5": {
|
||||
"mchId": "2088331237380943",
|
||||
"appId": "2021003146640589",
|
||||
"privateKey": "MIIEwAIBADANBgkqhkiG9w0BAQEFAASCBKowggSmAgEAAoIBAQCb42vVsh3AcQ9kYLkd/2/gPfwYVvl3it99BoRXCP30PO5xQ6zrXcR27JjF9+dm5FWec3A6K5rZIgj/Y0qkpaf1mElSZj/isOZQw1w6zZVZzpH/yE0+1a4lUVSlHa8TByOvoPWo+un+Bsy9Hsl+/34XM/xZuYgBiysoOXGTg59FKIHv4aOlku/MXkumAMnZCM4kEe8MYU2k418ttpcLT6MVRrbsYKyYAjjz9IS8G54rw8tTwgGvvVQIwUczh2P8cPdlbYW1D9JRkEqtaXxySOIC6UluAXfiIleezQEzLN2mH4n55iq5qOxGCFZJ+Eh6RXaswbAjWPqhkGlHXN86YTUBAgMBAAECggEBAIwW6R5mbcQ2Fj3/ifxCRDjBm14IMzHRlBvYEm/gvc+SPjl9NtVhM6An6PbnXIWjpqm5Vd6AtyxwIKPZiAfEctcLXsD08G54yNFFbwnNHG1TbPLu/zP7dP9GQooLzfyMiu5W+M09h7BoTe+azjsZwSd66Ul8qJOyjDsevElznFrZpTCwxaJMENqUuKV+io4mTR5XcQCsJoShG5MfvOoEql/V/JrNhop3mX9arvxQhq5Xky+1kw9eTT6xSopYlg3/y3sXGIp10/JC+Du1SOufYK3SpUL7ukTUWVlNwzmD1cdC9mh0red+kSbOF2sHjHHwGGySrtJsHxMphR4P5sghNf0CgYEA/8f6bouzKbDiFtHUlb/lLwF5SEK3Wmp3lGMUeBo2tAydUnqmUtNadyI+e8RG9p6tOk+1qCWxuvIc8vrXZw7xr716BNB0D00t25gWi9r823dlsU0faKIdkjGs8+m+J6gbjWAWLQCoEWrN9M7Qy1ddhkNxxrGgvUS9CNcT3Bon62cCgYEAnAWQcgzq+Gi8plr/lY/JrZtfLX34LVubBLOtSZRueJnYSYWG09dqRd5MYvVNklBKG4kq5Aw0yyUxQMEKA/eEW/A3nAbzRKYgU627ESuJQsWxhpG+4oP8T8wAI+19i4QEcLINwaQ9yeuASKOYpRbaxFiFM3E6j5Rdj+Fprs3CA1cCgYEAxh3VYg6e5Wn2lQpOCPerwu73S/sxHb1dhfgAgM59FJS4vov1jC3c4m4Jy7/J33gkYQgggm8/7LdfqOyWL2Mp3J98hYIYg0mafX6d6BHkzPD8OYqtC1SWZwhHGF4yRXE2dhi41H6vr130zOvsWbP/4uEWnXo0MKWvbct5vIAd730CgYEAgDS+Tkm5J2kBY/2wudiO1B6xZjN2JOd6ibGPur/Cy004Aqo7cYY46LLTuBl0pb9eNiRP31b8ZtXoFBrMPRg+ZkINoCPB8O5F8Bz5dBF/WCQVTcwjvATS50tt7hfwKx3PfD+DuFRbBbqEDqyH+Vi/acqHog7wHR3AiEOlUSP4wj8CgYEA88UowU/x4q+tfMpoBIYLPJ/YuowDH0IAo9ZlPI1oF6bBu2JFwLVZU1fyeebWe021weiNZ0/oiKOOvpcKI99d6ptWv8XynWWpGy6URC8yPJ0wE97z2yBnhqWtAbbiYjqikStYRSxxH0qERjNbz6gkp2yDuIUX94BrnvhWgUm0u0c=",
|
||||
"alipayPublicCertPath": path.join(__dirname, 'alipay/alipayCertPublicKey_RSA2.crt'),
|
||||
"alipayRootCertPath": path.join(__dirname, 'alipay/alipayRootCert.crt'),
|
||||
"appCertPath": path.join(__dirname, 'alipay/appCertPublicKey.crt'),
|
||||
"sandbox": false
|
||||
},
|
||||
// // 支付宝 - APP支付配置
|
||||
// "app-plus": {
|
||||
// "appId": "",
|
||||
// "privateKey": "",
|
||||
// "alipayPublicCertPath": path.join(__dirname, 'alipay/alipayCertPublicKey_RSA2.crt'),
|
||||
// "alipayRootCertPath": path.join(__dirname, 'alipay/alipayRootCert.crt'),
|
||||
// "appCertPath": path.join(__dirname, 'alipay/appCertPublicKey.crt'),
|
||||
// "sandbox": false
|
||||
// },
|
||||
// // 支付宝 - H5支付配置(包含:网站二维码、手机H5,需申请支付宝当面付接口权限)
|
||||
// "h5": {
|
||||
// "appId": "",
|
||||
// "privateKey": "",
|
||||
// "alipayPublicCertPath": path.join(__dirname, 'alipay/alipayCertPublicKey_RSA2.crt'),
|
||||
// "alipayRootCertPath": path.join(__dirname, 'alipay/alipayRootCert.crt'),
|
||||
// "appCertPath": path.join(__dirname, 'alipay/appCertPublicKey.crt'),
|
||||
// "sandbox": false
|
||||
// },
|
||||
// 支付宝 - 转账到支付宝等资金转出接口,其中 appCertSn 和 alipayRootCertSn 通过工具获取,工具地址:https://vkunicloud.fsq.pub/getCertSn/
|
||||
"transfer": {
|
||||
"appId": "",
|
||||
"privateKey": "",
|
||||
"appCertSn": "", // 应用证书的序列号
|
||||
"alipayRootCertSn": "", // 支付宝根证书的序列号
|
||||
"sandbox": false
|
||||
}
|
||||
},
|
||||
// ios内购相关
|
||||
"appleiap": {
|
||||
// ios内购支付
|
||||
"app-plus": {
|
||||
"password": "", // App 专用共享密钥,App 专用共享密钥是用于接收此 App 自动续期订阅收据的唯一代码。如果您要将此 App 转让给其他开发者或不想公开主共享密钥,建议使用 App 专用共享密钥。非自动续订场景不需要此参数
|
||||
"timeout": 10000, // 请求超时时间,单位:毫秒
|
||||
"receiptExpiresIn": 86400, // ios内购凭据有效期,单位:秒 86400 = 24小时 3600 = 1小时
|
||||
"sandbox": true, // 是否是沙箱环境(正式上线时必须配置为false)
|
||||
}
|
||||
}
|
||||
}
|
||||
0
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/wxpay/apiclient_cert.p12
generated
vendored
Normal file
0
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/wxpay/apiclient_cert.p12
generated
vendored
Normal file
3
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/wxpay/apiclient_cert.pem
generated
vendored
Normal file
3
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/wxpay/apiclient_cert.pem
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
证书内容
|
||||
-----END CERTIFICATE-----
|
||||
3
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/wxpay/apiclient_key.pem
generated
vendored
Normal file
3
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/wxpay/apiclient_key.pem
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
证书内容
|
||||
-----END PRIVATE KEY-----
|
||||
1
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/wxpay/【重要】这里放微信支付证书.md
generated
vendored
Normal file
1
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/uni-pay/wxpay/【重要】这里放微信支付证书.md
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
[微信支付所需参数和证书生成教程](https://docs.qq.com/doc/DWUpGTW1kSUdpZGF5)
|
||||
8
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/【重要】请先看这里.md
generated
vendored
Normal file
8
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/node_modules/uni-config-center/【重要】请先看这里.md
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
## 重要说明
|
||||
|
||||
#### `uni-id` 的配置是在 `cloudfunctions/common/uni-config-center/uni-id/config.json` 中配置
|
||||
#### `uni-pay` 的配置是在 `cloudfunctions/common/uni-config-center/uni-pay/config.js` 中配置
|
||||
|
||||

|
||||
|
||||
注意:即使你不需要证书,也不要删除默认的空白证书(否则会报fs.readFileSync(__dirname+'/wxpay/apiclient_cert.p12') 找不到文件的错误。)
|
||||
13
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/package-lock.json
generated
Normal file
13
uni_modules/uni-captcha/uniCloud/cloudfunctions/common/uni-captcha/package-lock.json
generated
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "uni-captcha",
|
||||
"version": "0.2.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "uni-captcha",
|
||||
"version": "0.2.2",
|
||||
"license": "Apache-2.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "uni-captcha",
|
||||
"version": "0.2.2",
|
||||
"description": "uni-captcha",
|
||||
"main": "index.js",
|
||||
"homepage": "https://ext.dcloud.net.cn/plugin?id=4048",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://gitee.com/dcloud/uni-captcha"
|
||||
},
|
||||
"author": "DCloud",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
module.exports = {
|
||||
"image-captcha":{
|
||||
"width": 150, //图片宽度
|
||||
"height": 44, //图片高度
|
||||
"background": "#FFFAE8", //验证码背景色,设置空字符`''`不使用背景颜色
|
||||
// "size": 4, //验证码长度,最多 6 个字符
|
||||
// "noise": 4, //验证码干扰线条数
|
||||
// "color": false, //字体是否使用随机颜色,当设置`background`后恒为`true`
|
||||
// "fontSize": 40, //字体大小
|
||||
// "ignoreChars": '', //忽略那些字符
|
||||
// "mathExpr": false, //是否使用数学表达式
|
||||
// "mathMin": 1, //表达式所使用的最小数字
|
||||
// "mathMax": 9, //表达式所使用的最大数字
|
||||
// "mathOperator": '' //表达式所使用的运算符,支持 `+`、`-`。不传随机使用
|
||||
// "expiresDate":180 //验证码过期时间(s)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
// 开发文档: https://uniapp.dcloud.net.cn/uniCloud/cloud-obj
|
||||
//导入验证码公共模块
|
||||
const uniCaptcha = require('uni-captcha')
|
||||
//获取数据库对象
|
||||
const db = uniCloud.database();
|
||||
//获取数据表opendb-verify-codes对象
|
||||
const verifyCodes = db.collection('opendb-verify-codes')
|
||||
module.exports = {
|
||||
async getImageCaptcha({
|
||||
scene
|
||||
}) {
|
||||
//获取设备id
|
||||
let {
|
||||
deviceId,
|
||||
platform
|
||||
} = this.getClientInfo();
|
||||
//根据:设备id、场景值、状态,查找记录是否存在
|
||||
let res = await verifyCodes.where({
|
||||
scene,
|
||||
deviceId,
|
||||
state: 0
|
||||
}).limit(1).get()
|
||||
//如果已存在则调用刷新接口,反之调用插件接口
|
||||
let action = res.data.length ? 'refresh' : 'create'
|
||||
//执行并返回结果
|
||||
//导入配置,配置优先级说明:此处配置 > uni-config-center
|
||||
return await uniCaptcha[action]({
|
||||
scene, //来源客户端传递,表示:使用场景值,用于防止不同功能的验证码混用
|
||||
uniPlatform: platform
|
||||
})
|
||||
}
|
||||
}
|
||||
10
uni_modules/uni-captcha/uniCloud/cloudfunctions/uni-captcha-co/package-lock.json
generated
Normal file
10
uni_modules/uni-captcha/uniCloud/cloudfunctions/uni-captcha-co/package-lock.json
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "uni-captcha-co",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "uni-captcha-co"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "uni-captcha-co",
|
||||
"dependencies": {
|
||||
"uni-captcha": "file:../common/uni-captcha",
|
||||
"uni-config-center": "file:../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
|
||||
},
|
||||
"extensions": {
|
||||
"uni-cloud-jql": {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user