Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback 10 #792

Merged
merged 2 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/leancloud/en/sdk/storage/rest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@ LeanCloud will automatically create a unique index for `authData.platform_name.u
This avoids binding a third-party account to multiple users.
However, you need to verify `authData` yourself (except for certain platforms, see below).

LeanCloud has built-in support for Apple and some popular social networks in China ([Weibo](http://weibo.com/), [WeChat](https://www.wechat.com/en) (*weixin* in Chinese pinyin), and [QQ](https://imqq.com/English1033.html)).
LeanCloud has built-in support for Apple and some popular social networks in China ([Weibo](http://weibo.com/), [WeChat](https://www.wechat.com/en) (*weixin* in Chinese pinyin), and [QQ](https://im.qq.com/index/)).

```json
{
Expand Down
10 changes: 0 additions & 10 deletions .ci/leancloud/zh-Hans/sdk/authentication/rest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -435,17 +435,7 @@ curl -X DELETE \
}
```

[腾讯微博](http://t.qq.com/) 的 authData 内容:

```json
{
"qq": {
"openid": "0395BA18A5CD6255E5BA185E7BEBA242",
"access_token": "12345678-SaMpLeTuo3m2avZxh5cjJmIrAfx4ZYyamdofM7IjU",
"expires_in": 1382686496
}
}
```

[微信](http://open.weixin.qq.com/) 的 authData 内容:

Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/authentication/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ Client ID 用于校验 `identity_token` 及获取 `access_token`,指的是 App

#### 获取 Private Key 及 Private Key ID

Private Key 用于获取 `access_token`。登录 Apple 开发者平台,在左侧的「Certificates, Identifiers & Profiles」中选择「Keys」,添加一个用于 Apple Sign In 的 Private Key,下载 `.p8` 文件,同时在下载 Key 的页面获得 Private Key ID。详情请参考 [Apple 的文档](https://help.apple.com/developer-account/#/dev77c875b7e)。
Private Key 用于获取 `access_token`。登录 Apple 开发者平台,在左侧的「Certificates, Identifiers & Profiles」中选择「Keys」,添加一个用于 Apple Sign In 的 Private Key,下载 `.p8` 文件,同时在下载 Key 的页面获得 Private Key ID。详情请参考 [Apple 的文档](https://developer.apple.com/cn/help/account/)。

将 Key ID 填写到控制台,将下载下来的 Private Key 文件上传到控制台。控制台只能上传 Private Key 文件,无法查看及下载其内容。

Expand Down
11 changes: 0 additions & 11 deletions docs/sdk/authentication/rest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -337,17 +337,6 @@ curl -X DELETE \
}
```

[腾讯微博](http://t.qq.com/) 的 authData 内容:

```json
{
"qq": {
"openid": "0395BA18A5CD6255E5BA185E7BEBA242",
"access_token": "12345678-SaMpLeTuo3m2avZxh5cjJmIrAfx4ZYyamdofM7IjU",
"expires_in": 1382686496
}
}
```

[微信](http://open.weixin.qq.com/) 的 authData 内容:

Expand Down
4 changes: 2 additions & 2 deletions docs/sdk/domain/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ AV.init({

##### 即时通讯 SDK

请参考 [即时通讯开发指南](https://leancloud.cn/docs/realtime-guide-beginner.html#hash1562353597) 配置。
请参考 [即时通讯开发指南](https://docs.leancloud.cn/sdk/im/guide/overview/) 配置。

旧版本的 SDK 请参考以下方法配置(建议使用最新版本的 SDK):

Expand Down Expand Up @@ -720,7 +720,7 @@ Let's Encrypt 之外,比较知名的免费 SSL 证书提供商有 [ZeroSSL]、
```
issueCert for {host}: Authorization not found in HTTP response from {host} ;
```
因为工信部规定,网站接入多个云服务商时,需要在各云服务商处接入备案。这个报错是缺少对应的云服务商备案所导致的(如果是华东区的应用,很可能是缺少腾讯云备案);可以参考[域名备案指南](http://localhost:3888/docs/sdk/domain/icp/#%E6%8E%A5%E5%85%A5%E5%A4%87%E6%A1%88)进行备案操作;
因为工信部规定,网站接入多个云服务商时,需要在各云服务商处接入备案。这个报错是缺少对应的云服务商备案所导致的(如果是华东区的应用,很可能是缺少腾讯云备案);可以参考[域名备案指南](/sdk/domain/icp)进行备案操作;

[let's encrypt]: https://letsencrypt.org/
[zerossl]: https://zerossl.com/
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/engine/deploy/python.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ from app import app
application = app
```

流行的 Python Web 框架对 WSGI 都有支持,比如 [Flask](https://flask.palletsprojects.com/en/2.1.x/)、[Django](https://www.djangoproject.com)、[Tornado](https://www.tornadoweb.org/en/stable/)。我们提供了 Flask 和 Django 两个框架的示例项目作为参考,你也可以直接把它们当作一个应用项目的初始化模版:
流行的 Python Web 框架对 WSGI 都有支持,比如 [Flask](https://flask.palletsprojects.com/en/)、[Django](https://www.djangoproject.com)、[Tornado](https://www.tornadoweb.org/en/stable/)。我们提供了 Flask 和 Django 两个框架的示例项目作为参考,你也可以直接把它们当作一个应用项目的初始化模版:

- [Flask](https://github.com/leancloud/python-getting-started)
- [Django](https://github.com/leancloud/django-getting-started)
Expand Down
1 change: 0 additions & 1 deletion docs/sdk/engine/functions/sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ app.listen(process.env.LEANCLOUD_APP_PORT);

Node SDK 的历史版本:

- `0.x`:最初的版本,对 Node.js 4.x 及以上版本兼容不佳,建议用户参考 [升级到云引擎 Node.js SDK 1.0](https://leancloud.cn/docs/leanengine-node-sdk-upgrade-1.html) 来更新。
- `1.x`:彻底废弃了全局的 `currentUser`,依赖的 JavaScript 也升级到了 1.x 分支,支持了 Koa 和 Node.js 4.x 及以上版本。
- `2.x`:提供了对 Promise 风格的云函数、Hook 写法的支持,移除了一些被弃用的特性(`AV.Cloud.httpRequest`),不再支持 Backbone 风格的回调函数。
- `3.x`:**推荐使用** 的版本,指定 JavaScript SDK 为 peer dependency(允许自定义 JS SDK 的版本),升级 JS SDK 到 3.x。
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/storage/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import Path from "/src/docComponents/path";

<Conditional brand="leancloud">

对于 [社交信息流](https://leancloud.cn/docs/status_system.html),`create` 和 `update` 按照 Status 和 Follower/Followee 的对象数量来计费。
对于 [社交信息流](https://docs.leancloud.cn/sdk/other/openview/status_system/),`create` 和 `update` 按照 Status 和 Follower/Followee 的对象数量来计费。

</Conditional>

Expand Down
4 changes: 3 additions & 1 deletion docs/sdk/tap-support/features/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ sidebar_position: 1

### 开通服务

游戏客服是厂商维度的服务,开发者可以在 **开发者中心厂商页面 > 厂商服务 > 游戏客服** 处自助开通服务。
游戏客服是厂商维度的服务,开发者可以在 **开发者中心厂商页面 > 游戏服务 > 游戏客服** 处自助开通服务。



:::info 权限要求
访问开发者中心游戏客服模块需要厂商权限中的 **客服管理员** 权限。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ To check if a `TDSUser` is authenticated, you can invoke the `isAuthenticated` m

## Security of Other Objects

For each given object, you can specify which users are allowed to read it and which are allowed to modify it. To support this type of security, each object has an access control list implemented by an `ACL` object. More details can be found in [ACL Guide](https://docs.leancloud.app/acl-guide.html).
For each given object, you can specify which users are allowed to read it and which are allowed to modify it. To support this type of security, each object has an access control list implemented by an `ACL` object. More details can be found in [ACL Guide](https://docs.leancloud.app/en/sdk/engine/cli/).

## Third-Party Sign-on

Expand Down Expand Up @@ -595,7 +595,7 @@ Client ID is used to verify `identity_token` and to obtain `access_token`. It is

#### Getting Private Key and Private Key ID

Private Key is used to obtain `access_token`. You can go to Apple Developer, select “Keys” from “Certificates, Identifiers & Profiles”, add a Private Key for Sign in with Apple, and then download the `.p8` file. You will also obtain the Private Key ID from the page you download the key. See [Apple’s docs](https://help.apple.com/developer-account/#/dev77c875b7e) for more details.
Private Key is used to obtain `access_token`. You can go to Apple Developer, select “Keys” from “Certificates, Identifiers & Profiles”, add a Private Key for Sign in with Apple, and then download the `.p8` file. You will also obtain the Private Key ID from the page you download the key. See [Apple’s docs](https://developer.apple.com/cn/help/account/) for more details.

The last step is to fill in the Key ID on the Developer Center and upload the downloaded Private Key. You can only upload Private Keys, but cannot view or download them.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ from app import app
application = app
```

Most popular Python-based web frameworks come with support for WSGI, including [Flask](https://flask.palletsprojects.com/en/2.1.x/), [Django](https://www.djangoproject.com), and [Tornado](https://www.tornadoweb.org/en/stable/). We provide the following Flask- and Django-based boilerplates for you to reference and start your project with:
Most popular Python-based web frameworks come with support for WSGI, including [Flask](https://flask.palletsprojects.com/en/), [Django](https://www.djangoproject.com), and [Tornado](https://www.tornadoweb.org/en/stable/). We provide the following Flask- and Django-based boilerplates for you to reference and start your project with:

- [Flask](https://github.com/leancloud/python-getting-started)
- [Django](https://github.com/leancloud/django-getting-started)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1973,7 +1973,7 @@ For example, if a `BeforeSave` hook is triggered by a Cloud Function that has al

## Hooks for Instant Messaging

See <Conditional brand="tds">[Hooks and System Conversations](/sdk/im/guide/systemconv/)</Conditional><Conditional brand="leancloud">[Hooks and System Conversations](https://leancloud.cn/docs/realtime-guide-systemconv.html)</Conditional> for more information.
See <Conditional brand="tds">[Hooks and System Conversations](/sdk/im/guide/systemconv/)</Conditional><Conditional brand="leancloud">[Hooks and System Conversations](https://docs.leancloud.app/en/sdk/im/guide/systemconv/)</Conditional> for more information.

## Writing Cloud Functions Online

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ We recommend that you use [Postman](https://www.postman.com/) for testing the RE

The base URL of the REST API is the API domain of your application (represented with `{{host}}`). You can bind and view API domains on the dashboard. See <Conditional brand="tds">[Domain](/sdk/storage/guide/setup-dotnet/#domain)</Conditional><Conditional brand="leancloud">[Binding Your Domains](/sdk/domain/guide/)</Conditional> for more information.

See <Conditional brand="tds">[this article](/sdk/storage/guide/rest/#request-format)</Conditional><Conditional brand="leancloud">[this article](https://leancloud.cn/docs/rest_api.html#hash1094926014)</Conditional> for more information about the format of the request.
See <Conditional brand="tds">[this article](/sdk/storage/guide/rest/#request-format)</Conditional><Conditional brand="leancloud">[this article](https://docs.leancloud.app/en/sdk/storage/guide/rest/#request-format)</Conditional> for more information about the format of the request.

## Overview

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Conditional } from "/src/docComponents/conditional";
This article serves as a thorough introduction to the Cloud Engine SDK. To learn about the usage of Cloud Functions and hooks, see [Cloud Functions and Hooks Guide](/sdk/engine/functions/guides).
:::

The Cloud Engine SDKs for most of the runtime environments are based on the <Conditional brand="tds">[Data Storage](/sdk/storage/features)</Conditional><Conditional brand="leancloud">[Data Storage](https://docs.leancloud.app/storage_overview.html)</Conditional> SDK, offering additional features that support Cloud Functions and hooks. With the Cloud Engine SDK, you can easily build backend apps that can be deployed to Cloud Engine.
The Cloud Engine SDKs for most of the runtime environments are based on the <Conditional brand="tds">[Data Storage](/sdk/storage/features)</Conditional><Conditional brand="leancloud">[Data Storage](https://docs.leancloud.app/en/sdk/storage/overview)</Conditional> SDK, offering additional features that support Cloud Functions and hooks. With the Cloud Engine SDK, you can easily build backend apps that can be deployed to Cloud Engine.

## Integrating the Cloud Engine SDK

Expand Down Expand Up @@ -249,7 +249,7 @@ You can find the source code of the Go SDK on [GitHub](https://github.com/leancl

## Using the Data Storage Service

Once you have integrated the SDK, you will be able to access the <Conditional brand="tds">[Data Storage](/sdk/storage/features)</Conditional><Conditional brand="leancloud">[Data Storage](https://docs.leancloud.app/storage_overview.html)</Conditional> service from Cloud Engine to store data. See the articles for Data Storage SDKs for more information.
Once you have integrated the SDK, you will be able to access the <Conditional brand="tds">[Data Storage](/sdk/storage/features)</Conditional><Conditional brand="leancloud">[Data Storage](https://docs.leancloud.app/en/sdk/storage/overview)</Conditional> service from Cloud Engine to store data. See the articles for Data Storage SDKs for more information.

Functions related to the Data Storage service can be accessed from Cloud Functions and hooks as well as other places in your project (like the web framework you’re using).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Cloud Engine automatically prepares runtime environments for the applications de

Cloud Engine barely interferes in the processes of your application. You are free to use your preferred frameworks and libraries in your project and organize files and directories in your way. Cloud Engine’s load balancer forwards all the HTTP requests sent to the domains bound to your application. It’s up to you to design the HTTP API’s paths as well as requests’ and responses’ formats under the web framework used by your application.

Cloud Engine is primarily optimized for hosting stateless HTTP services. Although your application has access to the disk, there’s no guarantee that the disk will keep the files created by your application persistently. For long-term data storage, use the <Conditional brand="tds">[Data Storage](/sdk/storage/features)</Conditional><Conditional brand="leancloud">[Data Storage](https://docs.leancloud.app/storage_overview.html)</Conditional> service or LeanDB’s hosted [Redis](/sdk/engine/database/redis/), [MongoDB](/sdk/engine/database/mongo/), and [Elasticsearch](/sdk/engine/database/es/).
Cloud Engine is primarily optimized for hosting stateless HTTP services. Although your application has access to the disk, there’s no guarantee that the disk will keep the files created by your application persistently. For long-term data storage, use the <Conditional brand="tds">[Data Storage](/sdk/storage/features)</Conditional><Conditional brand="leancloud">[Data Storage](https://docs.leancloud.app/en/sdk/storage/overview)</Conditional> service or LeanDB’s hosted [Redis](/sdk/engine/database/redis/), [MongoDB](/sdk/engine/database/mongo/), and [Elasticsearch](/sdk/engine/database/es/).

<p>
To associate an existing project to a Cloud Engine application, run{" "}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ The system will charge according to the daily peak consumption of computing unit

<Conditional region="cn">

The system will charge according to the daily peak consumption of computing units. The price of a single computing unit can be found on the [official website](https://developer.taptap.cn/product-intro/price). For example, if an application on a China node uses up to 2 computing units on a given day, the charge for that day will be 2 * computing unit price of China.
The system will charge according to the daily peak consumption of computing units. The price of a single computing unit can be found on the [official website](https://developer.taptap.io/product-intro/price). For example, if an application on a China node uses up to 2 computing units on a given day, the charge for that day will be 2 * computing unit price of China.

</Conditional>

Expand Down
Loading