当前位置:网站首页>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
边栏推荐
- 程序员坐牢了,会被安排去写代码吗?
- 109. 简易聊天室12:实现客户端一对一聊天
- Excel将一行的内容进行复制时,列与列之间是用制表符“\t”进行分隔的
- C语言中函数是什么?编程中的函数与数学中的函数区别?理解编程语言中的函数
- Pcr/qpcr research: lumiprobe dsgreen is used for real-time PCR
- MySQL export query results to excel file
- 学习太极创客 — MQTT 第二章(四)ESP8266 保留消息应用
- Extjs library management system source code intelligent library management system source code
- 学习太极创客 — MQTT 第二章(五)心跳机制
- 电源插座是如何传输电的?困扰小伙伴这么多年的简单问题
猜你喜欢

学习太极创客 — MQTT 第二章(五)心跳机制

JS text box loses focus to modify width text and symbols

2022年全国最新消防设施操作员(初级消防设施操作员)模拟题及答案

并发之wait/notify说明

2022 safety officer-b certificate examination question bank and answers

开关电源电压型与电流型控制

分享一个因子挖掘的利器:遗传规划

Learning Tai Chi Maker - mqtt Chapter 2 (V) heartbeat mechanism

sqlmap工具使用手册

二级造价工程师考试还没完?还有资格审核规定!
随机推荐
JS 文本框失去焦点修改全半角文字和符号
[JVM series] JVM tuning
如何学习可编程逻辑控制器(PLC)?
创新之源 理解通透 二
Study on chemical properties and technology of biovendor rage ELISA Kit
[microservices openfeign] openfeign quick start service invocation based on feign
lotus v1.16.0 calibnet
How to learn programmable logic controller (PLC)?
MCLK configuration of Qualcomm platform camera
Severe tire damage: the first rock band in the world to broadcast live on the Internet
Differences between pragma and ifndef
开关电源电压型与电流型控制
Camera Basics
cgo+gSoap+onvif学习总结:8、arm平台交叉编译运行及常见问题总结
What is the difference between AC and DC?
Keil C51的Data Overlaying机制导致的函数重入问题
C语言中函数是什么?编程中的函数与数学中的函数区别?理解编程语言中的函数
2022年低压电工考题及答案
Understanding the source of innovation II
The heading angle of sliceplane is the same as that of math Corresponding transformation relation of atan2 (y, x)