我正在尝试开发我的词典应用程序,在我的应用程序中,我正在使用数据库作为我的词典.所以我试图保护我的应用程序或阻止与ShareIT等应用程序共享我的应用程序!或CSHare等.我看到很多人会使用这些应用程序传输带有数据的所有应用程序,我正试图找到一种方法来阻止它或以某种方式取消这个应用程序.
我的应用程序是高级的,我知道可能有某种方式要求用户登录某些个人数据或类似的东西.但我也看到了人们正在使用这些共享应用程序做什么.
我不是说要给我一些代码或确切的例子(如果可能会更好)来防止这种分享!小信息和指南也将帮助我更好地开发和保护我的应用程序.
所以请帮助我并给我你的建议.
Before everything, this is not duplicate.
How can i get my Axios parameters from URL for my GET request?
Example:
Link : http://127.0.0.1:8000/callback?Authority=000000000000000000000000000107041762&Status=OK
So parameters are Authority And Status
Authority: How to get this parameters from url
Status: How to get this parameters from url
我正在使用 laravel 和 vue.js,代码是:
回调.vue:
<template>
<div>
TEXT
</div>
</template>
<script>
export default {
name: "callback",
data () {
return {}
},
methods: {
loadData(){
axios.get("api/callback", {
Authority: ,
Status
})
.then(({ data }) => …Run Code Online (Sandbox Code Playgroud) 你好。我想检查我的输入文件类型是否为 jpg。我使用了'vee-validate',这很好,但我喜欢做的就像我根据教程对文件大小所做的一样。
这是代码:
<input type="file" @change="updateMelliCodeFrontScan" name="mellicode_front_url" class="form-input" >
Run Code Online (Sandbox Code Playgroud)
这是Vue方法:
updateMelliCodeFrontScan(e){
// console.log('uploading');
let file = e.target.files[0];
let reader = new FileReader();
// let vm = this;
if (file['size'] < 200000){
reader.onloadend = (file) => {
// console.log('RESULT', reader.result)
this.form.mellicode_front_url = reader.result;
}
reader.readAsDataURL(file);
}else
{
swal({
type: 'error',
title: 'Size limited.',
text: 'size limit',
})
}
},
Run Code Online (Sandbox Code Playgroud)
所以我想这样做:
=> i want to make another if for file type base on extension/type like file['type'].
i used file['type'] === jpg and …Run Code Online (Sandbox Code Playgroud)