Comments (4)
我知道怎么回事了。因为在使用 Lin-CMS 前端项目的时候 email 字段传递的是空值,所以是可以成功的。我在 postman 上测试没有传递 email 字段。
在这里顺便问一下,那是在后台判断 email 是否存在好呢?还是就保持这样,跟前台沟通保证传递该字段呢?
from lin-cms-tp5.
不太会用 pull-request
from lin-cms-tp5.
我知道怎么回事了。因为在使用 Lin-CMS 前端项目的时候 email 字段传递的是空值,所以是可以成功的。我在 postman 上测试没有传递 email 字段。
在这里顺便问一下,那是在后台判断 email 是否存在好呢?还是就保持这样,跟前台沟通保证传递该字段呢?
问:那是在后台判断 email 是否存在好呢?还是就保持这样,跟前台沟通保证传递该字段呢?
答:更倾向沟通保证传递字段。但我想了想,人这东西最不靠谱了,后端还是要判断一下,为了复用,可以封装一个公共方法专门用来解析传递的字段,比如约定的可空字段没传,那就生成对应的字段并赋空值。
from lin-cms-tp5.
好的,多谢解答。那我就先把 issue 关闭了。
from lin-cms-tp5.
Related Issues (13)
- 建议把 lin-cms-tp5-core和lin-cms-tp5-admin-code在lin-cms-tp5的README.md加个导航 HOT 4
- 《Lin CMS PHP&Vue教程》读者反馈贴 HOT 52
- 《Lin CMS PHP&Vue教程》公告贴 HOT 17
- 适配lin-cms-vue,获取用户列表出错 HOT 2
- 后台用户表nickname数据字段和代码中类属性不一致报错 HOT 1
- refresh_token 可以作为access_token使用,且永远不会过期。😱 HOT 2
- TP5数据库迁移相关问题
- TP5数据库迁移相关问题
- Route 可不可以设计成分文件管理? HOT 1
- README文件有一句话不通顺
- lin-cms-vue上传图片加载失败 HOT 1
- 前后端代码公开吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lin-cms-tp5.