当前位置:网站首页>Wedding studio portal applet based on wechat applet
Wedding studio portal applet based on wechat applet
2022-06-28 05:13:00 【Classmate CC】
Business background
Wedding studio applet provides a platform to connect users and studios , It is equivalent to the studio's official website on wechat . It can help studios show their shooting strength , Record visitor data , Promotional offers . High frequency of use , Easy to spread , It is the right-hand assistant of the studio in wechat marketing . It adopts the small program cloud development solution provided by Tencent , No servers and domain names . The sample page is used by the studio to show excellent photographic samples for users to enjoy and attract customers . The cover page is a set of different packages launched by the studio according to the market demand , Users can reserve the set according to their own preferences . The personal center can view the shooting plan reserved by the user , You can also get the contact information of the studio .
functional requirement

Database design

Technical research
At present, the small procedures are more and more strict , need Content published to users , picture , Video, etc. for security compliance verification , Make sure there is no indecent content .
To this end, we have developed a verification method for images and textUGC Public mode encapsulation
const cloudHelper = require('../helper/cloud_helper.js');
const pageHelper = require('../helper/page_helper.js');
const setting = require('../setting/setting.js');
/** * Picture type verification * @param {*} fileName * @param {*} type */
function imgTypeCheck(path, type = ['jpg', 'jpeg', 'png','JPG','JPEG','PNG']) {
let fmt = path.split(".")[(path.split(".")).length - 1];
if (type.indexOf(fmt) > -1)
return true;
else
return false;
}
/** * Picture size check * @param {*} size * @param {*} maxSize */
function imgSizeCheck(size, maxSize) {
return size < maxSize;
}
async function imgCheckCloud(path, opt) {
/* let result = await cloudHelper.callCloudSumbit('check/img', params, opt).then(res => { return true; }).catch(err => { return false; }); */
let result = await wx.cloud.callFunction({
name: 'cloud',
data: {
route: 'check/img',
token : '',
params:{
img: wx.cloud.CDN( {
type: 'filePath',
filePath: path,
})
}
},
success: function (res) {
console.log(res)
console.log('succ')
return true;
},
fail: function (res) {
console.log(res)
return false;
},
complete: function (res) {
}
});
return result;
}
/** * Image verification * @param {*} imgData */
async function imgCheck(imgData) {
let result = await wx.serviceMarket.invokeService({
service: 'wxee446d7507c68b11',
api: 'imgSecCheck',
data: {
"Action": "ImageModeration",
"Scenes": ["PORN", "POLITICS", "TERRORISM"],
"ImageUrl": new wx.serviceMarket.CDN({
type: 'filePath',
filePath: imgData,
}),
"ImageBase64": '',
"Config": "",
"Extra": ""
},
}).then(res => {
if (res && res.data && res.data.Response &&
res.data.Response.PornResult && res.data.Response.PornResult.Suggestion === 'PASS' &&
res.data.Response.PoliticsResult && res.data.Response.PoliticsResult.Suggestion === 'PASS' &&
res.data.Response.TerrorismResult && res.data.Response.TerrorismResult.Suggestion === 'PASS')
return true;
else
return false;
}).catch(err => {
console.log(err);
return false;
});
return result;
}
module.exports = {
imgCheck,
imgCheckCloud,
imgTypeCheck,
imgSizeCheck
}
Front end interface design




Back end interface design

Git Code :
Git Code
边栏推荐
- Extjs图书管理系统源码 智能化图书管理系统源码
- 109. simple chat room 12: realize client-side one-to-one chat
- 2022 safety officer-b certificate examination question bank and answers
- 现代交换原理MOOC部分题目整理
- [skywalking] learn distributed link tracking skywalking at one go
- 并发之wait/notify说明
- 【JVM系列】JVM调优
- 二级造价工程师考试还没完?还有资格审核规定!
- LeetCode 88:合并两个有序数组
- 大促场景下,如何做好网关高可用防护
猜你喜欢

交流电和直流电的区别是什么?

!‘ Cat 'is not an internal or external command, nor is it a runnable program or batch file.

Function reentry caused by Keil C51's data overlaying mechanism

Simulation questions and answers of the latest national fire-fighting facility operators (primary fire-fighting facility operators) in 2022

Sqlmap tool user manual

Keil C51的Data Overlaying机制导致的函数重入问题

cgo+gSoap+onvif学习总结:8、arm平台交叉编译运行及常见问题总结

How to learn programmable logic controller (PLC)?

The latest examination questions and answers for the eight members (standard members) of Liaoning architecture in 2022

sqlmap工具使用手册
随机推荐
电源插座是如何传输电的?困扰小伙伴这么多年的简单问题
How to learn programmable logic controller (PLC)?
2022 high altitude installation, maintenance and removal examination questions and answers
Have you finished the examination of level II cost engineer? There are also qualification regulations!
Latest Windows version 5.0.14 of redis
Reactive dye research: lumiprobe af594 NHS ester, 5-isomer
2022电力电缆判断题模拟考试平台操作
分享一个因子挖掘的利器:遗传规划
Opencv实现目标检测
学习太极创客 — MQTT 第二章(四)ESP8266 保留消息应用
Function reentry caused by Keil C51's data overlaying mechanism
sqlmap工具使用手册
Simulation questions and answers of the latest national fire-fighting facility operators (primary fire-fighting facility operators) in 2022
高通平台 Camera 之 MCLK 配置
C语言中函数是什么?编程中的函数与数学中的函数区别?理解编程语言中的函数
基于订单流工具,我们能看到什么?
改性三磷酸盐研究:Lumiprobe氨基-11-ddUTP
2022年材料员-通用基础(材料员)操作证考试题库及答案
Pcr/qpcr research: lumiprobe dsgreen is used for real-time PCR
msa.h:没有那个文件或目录