<?php
/**
* Yzd_my模块小程序接口定义
*
* @author 沈阳云之道网络
* @url
*/
defined('IN_IA') or exit('Access Denied');
define("YZD_MY_IMG","/static/public/img");
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE");
header('Access-Control-Allow-Headers:x-requested-with,content-type');
require "inc/common/common.php";
require 'inc/common/order.php';
require "inc/common/tasks.php";
require 'lib/kuaidiniao/kuaidi.php';
include 'lib/php_poster/phpQrcode.class.php';
include 'lib/php_poster/poster.class.php';
// require "inc/common/pc.php";
use Qiniu\Auth;
use Qiniu\Storage\UploadManager;
use Qiniu\Storage\BucketManager;
class Yzd_myModuleWxapp extends WeModuleWxapp
{
public function doPageTask(){
global $_GPC, $_W;
// var_dump(111);
// exit();
Task::timer();
}
// 加密
public function encrypt($data)
{
global $_GPC, $_W;
$key = 'r5r8bloufgv12548'; //秘钥必须为:8/16/32位
$iv = '01goyvbnx845fiwm';
$base64_str = base64_encode(json_encode($data));
$encrypted = openssl_encrypt($base64_str, "aes-128-cbc", $key, 0, $iv);
return base64_encode($encrypted);
}
/**解密
* @param $data
* @return mixed
*/
public function decrypt($data)
{
global $_GPC, $_W;
$encrypted = base64_decode($data);
$key = 'r5r8bloufgv12548'; //秘钥必须为:8/16/32位
$iv = '01goyvbnx845fiwm';
$decrypted = openssl_decrypt($encrypted, 'aes-128-cbc', $key, OPENSSL_ZERO_PADDING, $iv);
return json_decode(base64_decode($decrypted), true);
}
public function doPageWebConfig(){
global $_W, $_GPC;
$result = pdo_get('yzd_my_sys',array('uniacid'=>$_W['uniacid']));
$result['copyright'] = $_W['setting']['copyright'];
$result['wxapp_versions'] = pdo_get('wxapp_versions',array('uniacid'=>$_W['uniacid']));
// $result['']
if($_GPC['op'] == 'get'){
$code = $result ? 1 : 0;
$msg = $result ? '成功' : '数据错误';
exit(json_encode(array('code'=>$code,'msg'=>$msg,'data' => $result)));
}
if($_GPC['op'] == 'save'){
$data['name'] = $_GPC['name'];
$data['logo'] = $_GPC['logo'];
$data['is_force_login'] = $_GPC['is_force_login'];
$data['is_force_getphone'] = $_GPC['is_force_getphone'];
$data['address'] = $_GPC['address'];
$data['longitude'] = $_GPC['longitude'];
$data['latitude'] = $_GPC['latitude'];
$data['phone'] = $_GPC['phone'];
$data['is_service_coupon'] = $_GPC['is_service_coupon'];
$data['is_good_coupon'] = $_GPC['is_good_coupon'];
$data['is_staff_location'] = $_GPC['is_staff_location'];
$data['staff_list_type'] = $_GPC['staff_list_type'];
$data['service_title'] = $_GPC['service_title'];
$data['staff_title'] = $_GPC['staff_title'];
$res = pdo_update('yzd_my_sys',$data,array('uniacid'=>$_W['uniacid']));
exit(json_encode(array('code'=>1,'msg'=>'保存成功','data' => $res)));
}
}
public function doPageStorage(){
global $_W, $_GPC;
if($_GPC['op'] == 'get'){
$res = pdo_get('yzd_my_storage',array('uniacid'=>$_W['uniacid']));
$code = $res ? 1 : 0;
$msg = $res ? '成功' : '数据错误';
exit(json_encode(array('code'=>$code,'msg'=>$msg,'data' => $res)));
}
if($_GPC['op'] == 'save'){
$data['aliyun'] = htmlspecialchars_decode($_GPC['aliyun']);
$data['qiniu'] = htmlspecialchars_decode($_GPC['qiniu']);
$data['tengxun'] = htmlspecialchars_decode($_GPC['tengxun']);
$data['type'] = $_GPC['type'];
$res = pdo_update('yzd_my_storage',$data,array('uniacid'=>$_W['uniacid']));
exit(json_encode(array('code'=>1,'msg'=>'保存成功','data' => $res)));
}
}
//获取存储分组
public function doPageGetStorageGroup() {
global $_W, $_GPC;
$list = pdo_getall('yzd_my_storage_group',array('uniacid'=>$_W['uniacid'],'type'=>$_GPC['type'],'m_id'=>$_GPC['m_id']));
array_unshift($list,array('title'=>'全部','id'=>0));
exit(json_encode(array('code'=>1,'msg'=>'成功','data' => $list)));
}
// 新建存储分组
public function doPageAddStorageGroup() {
global $_W, $_GPC;
$res = pdo_insert('yzd_my_storage_group',array('uniacid'=>$_W['uniacid'],'type'=>$_GPC['type'],'m_id'=>$_GPC['m_id'],'title'=>$_GPC['title']));
$code = $res ? 1 : 0;
$msg = $res ? '新建成功' : '数据错误';
exit(json_encode(array('code'=>$code,'msg'=>$msg,'data' => $res)));
}
// 删除存储分组
public function doPageDelStorageGroup(){
global $_W, $_GPC;
$res = pdo_delete('yzd_my_storage_group',array('uniacid'=>$_W['uniacid'],'id'=>$_GPC['id']));
$code = $res ? 1 : 0;
$msg = $res ? '删除成功' : '数据错误';
exit(json_encode(array('code'=>$code,'msg'=>$msg,'data' => $res)));
}
// 获取存储列表
public function doPageGetStorageList() {
global $_W, $_GPC;
$pageindex = max(1, intval($_GPC['page']));
$pagesize=10;
$where=' WHERE uniacid=:uniacid';
if($_GPC['type_id']> 0) {
$where .= " and storage_group_id =".$_GPC['type_id'];
}
if($_GPC['title']){
$where.=" and title LIKE concat('%', :title,'%') ";
$data[':title']=$_GPC['title'];
}
if($_GPC['type']){
$where .= " and type =".$_GPC['type'];
}
$data[':uniacid']=$_W['uniacid'];
$where .= " and m_id =".$_GPC['m_id'];
$sql="SELECT * FROM ".tablename('yzd_my_storage_list') .$where." ORDER BY id DESC";
$total=pdo_fetchcolumn("SELECT count(*) FROM ".tablename('yzd_my_storage_list').$where,$data);
$select_sql =$sql." LIMIT " .($pageindex - 1) * $pagesize.",".$pagesize;
$list=pdo_fetchall($select_sql,$data);
$code = $list ? 1 : 1;
$msg = $list ? '成功' : '成功';
exit(json_encode(array('code'=>$code,'msg'=>$msg,'data' => $list,'total'=>intval($total))));
}
public function doPageUploadFile(){
global $_W, $_GPC;
$destination_folder = "../attachment/yzd_my/uniacid" . $_W['uniacid'] . "/" . date('Y') . "/" . date('m') . "/" . date('d') . "/"; //上传文件路径
$file = $_FILES["upfile"];
if (!file_exists($destination_folder)) {
mkdir($destination_folder, 0777, true);
}
$filename = $file["tmp_name"];
$image_size = getimagesize($filename);
$pinfo = pathinfo($file["name"]);
$ftype = $pinfo['extension'];
$destination = $destination_folder . str_shuffle(time() . rand(111111, 999999)) . "." . $ftype;
if (file_exists($destination) && $overwrite != true) {
print_r('同名文件已经存在了');
}
if (!move_uploaded_file($filename, $destination)) {
print_r('移动文件出错');
}
$pinfo = pathinfo($destination);
$fname = "yzd_my/uniacid" . $_W['uniacid'] . "/" . date('Y') . "/" . date('m') . "/" . date('d') . "/" . $pinfo['basename'];
exit(json_encode(array('path' => $fname,'url' => $_W['attachurl_local'].$fname)));
}
//判断当前是否为https
function is_https() {
if ( !empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') {
return true;
} elseif ( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' ) {
return true;
} elseif ( !empty($_SERVER['HTTP_FRONT_END_HTTPS']) && strtolower($_SERVER['HTTP_FRONT_END_HTTPS']) !== 'off') {
return true;
}
return false;
}
//保存文件
public function doPageAddStorage() {
global $_W, $_GPC;
$data['storage_group_id'] = $_GPC['storage_group_id'];
$http_type = $this->is_https();
$http_type = $http_type?'https://':'http://';
$data['url'] = $_GPC['url'];
$data['path'] = $_GPC['path'];
$data['type'] = $_GPC['type'];
$data['add_time'] = time();
$data['uniacid'] = $_W['uniacid']
没有合适的资源?快使用搜索试试~ 我知道了~
云之道智慧预约微信小程序系统源码下载,适用于百余种预约场景
共3575个文件
js:1283个
php:454个
css:447个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 16 下载量 62 浏览量
2021-10-22
17:40:18
上传
评论 1
收藏 186.13MB ZIP 举报
温馨提示
云之道智慧预约适用于百余种预约场景 例如:美容美发预约、医院预约、试乘试驾预约、家政预约、 婚庆预约、活动预约、会议室预约、驾校预约、景区预约等更多场景 帮助用户打通微信渠道,轻松获取流量红利 拥有自己私域流量池运营管理,搞定拓、留、锁、升,使路人变新客,新客变老客,老客带更多新客。
资源推荐
资源详情
资源评论
收起资源包目录
云之道智慧预约微信小程序系统源码下载,适用于百余种预约场景 (3575个子文件)
0272d2455ef583dbce3929f4ce984eb088ee71 2KB
04294c639a0787de48878fac2bae2f4b436ba3 3KB
07d505514f811cd78f7d401b9fa9edefcd557d 472B
0b80d0708621c94fa4b1c7e6a81e573c4ac671 472B
0d470cc4c3e3e2f9afa3ce98145c51189713af 48B
0e9861d6726d7ea1c719fd8e08b555ba033c14 48B
0eb2ec5cd73f0bfa70003c77a30671e8744754 727B
12eb614680226c0c47538dcd7aa5677a232dbb 193B
13fdb945b59cef127687200a95df2cb9ee0203 587B
15c04276f694fb4d6460f29064107a2435fe75 48B
1a44ef1b8eb0060245b8a84dc829d1c2be297f 154B
1ad592bd74d66bbddadbf6a89a1c184a9a89cc 547B
1b20aa356de941237c319921b1f86c3154d7c4 473B
1bd1ee4414c6b5f4618a37eb520f9167524a38 807B
216d10fb3161e26c8b05bcdc5e5d6eaa157ba3 567B
2253d3c81d7a18826e1e683a6104003d6d43f6 318B
250b2800e1cabc1092dea334e3aa4a27d72379 48B
25fd0fcb58500632a0787fe90f77cbeca1ac16 317B
285ed1740cc942f07d2f47a17bc48d9d52feba 49B
292edc5d894ced9633467fa85d181d078940da 48B
298050256a8dc38f807baf511c5ec7e96b33b9 48B
2b912f31abfb39cccca9225616627a57db59d0 45B
2cdcf2e8f843c27badd2c3baba78ab7d5a5f0b 45B
v2.0.3 41B
346fbe215df316459723835c17d357b80f0d8e 48B
35da2c4a3fc949f2d6935a426cf1dc67797e39 3KB
35e04cd3c898f84ed73c74309140585f502fee 46B
370411d6dcb71e8d6c63f0fdc4ff565522e54f 318B
3a1c16a2f93da7159a97e264abb7d8691b33fd 549B
3d61a6f9eb5fdedecf8c1f256c9aa792bc792e 824B
3e28c6d74b3b869c783c99ac744b85b0bd2c46 558B
v2.0.4 41B
400003146fec196295f3d0fcf84f8850d531b1 318B
425e7bb230c4037866bbdd12d8919000017cd5 471B
427eac1e42b0722fe1c62756a91e7d343dab3c 318B
44dc6ee4adc2f0c60325433934375f7ee1a317 471B
459a9bd1d5f5d9645768723eabb9c23eb1eb67 318B
48a7437f1aa0fdbcf4e251b380a8e799bf72e1 317B
4ac12589b19878b9a55f8372c5d82993e6784b 318B
4b83fbbc5fa4864451b41f6c0fe28e1b7897a2 7KB
4b89aecdacf01dd9adeb9dc080eb8535f3f155 547B
4fe7298a5bbb2eb0fd7ff5670779709333539f 45B
v2.0.5 41B
505f88d9d350f42da9bac6269e8e9e54271da4 2KB
5172c91207196a52d5210dfb51c240dcf9006f 471B
538958db0a24da972a2513696f5e82104d70dd 472B
547128356510b4353d19faba8198d47f41b48f 560B
54ba4960400c40a2b72c981cdf0707c5123d50 48B
5519d358226bc0858f005e6cb131ffafc60c4c 45B
5ea17c523bae8d2c1e9e8c7ca53e6bf675b285 1KB
62658366ac0ad886bfe5ab51d582414fde7f00 49B
639a65e860f4d934b532376d4788e928d5eda1 794B
6565ca866cf16696cdc1db0dbd1145776966a6 46B
676ca901ab8790a8867b9a194e2236b6dcc22d 3KB
6791c0761a35f4d2493eaf31ed326b56cc0a32 547B
6816fb5d5b1782e182dfe3efa63e31293fce1c 472B
6911f20c1e8e75d1eed2880c2deb2aca90282c 545B
691fad90d548f2086119a93a051d9037da23f1 318B
6a2fc0b385000934d7d97e65e77625010e8528 49B
6e58b979bfe20eb440cfbedf779c197f1ae5c7 472B
6e7af6f2da2793ae5930beb322a73e72191869 580B
73c42f198cec88459b88a015132536d3e276ea 166B
76a29708d2ef3596e57ebca945e072caea3e36 83B
7a43ef87954e62e5030742f64cab0a47c6bb0c 45B
7a9333d92ecd7dc04b9d2b25f5fcbb7b63c9c9 45B
7b06749862940fbfa6f8ca04edbafed66a9575 879B
7e8e1a78159e87c318e5449a1e6f095660cc5b 549B
8405d48dd63d7c9c164c69c54555085a3f9549 45B
8acbb3408a87c338a8618592db200b1deb6b2a 45B
8b9a7c293d4c557c0cc4a89edb2db1f35a7f5a 317B
8f742c4e920c7d568f7f974b928947c897fd1e 550B
9493a754ba4cf762bc235abbbf1f96374b6711 317B
986c81493648ec1b11816006adf8ee83699a78 3KB
98ab0bd1868a6fc99aae8b0fd9d372e2c77108 3KB
9b50ce695de32648c2afe371dbfc7859a1f66d 319B
9eed5be63cda95e40814dd31b885a550d2b3b2 318B
9fa04f484324c058d505382613a95012f6c01b 46B
a76160dcc3baa6df58f768d736f4398abc12ba 3KB
a82f86ffa53b7b8c1f00d852e63f82364d9be8 16KB
a96b0ba17570d8b2127daefb406f334517a01a 608B
adbf4e9abafe15ebe8f1609aeb845cd1ccf7fc 16KB
adcedcd556b75f35ff21c3fa88773fe7b57a60 470B
ae509e13ff8c3cec961ee1b1a50e766df56372 708B
aff8f1d023f0ef3712858b369773ac47bcab7d 83B
b23091f8bd2df892d148df73ecde36f2cf3db0 48B
b307609363eac9116ebabd18d02c20a394d4e0 45B
b4e00068fd1c5feaef60f00f654b5589a6159e 318B
b5a39234b6ad19b02f1cc325a38db2ac79c8bb 550B
b5d7d4ef23616ebf86d542818988b3e9ba9e3c 2KB
b6cbeed32930c3bae6a87ea50a9a904c441a47 318B
b73b1b34b6d044b715269124f92224741eac33 88B
b7788d764937f641df644da5601cd1df6141ff 318B
.babelrc 60B
【点击查最新更新】.bat 27B
【点击查最新更新】.bat 27B
【点击查最新更新】.bat 27B
bc8e833867a4fe022d64ca0eb3ef3c2dd6be1f 46B
bdafbe127ade28debfcb8bb751c34407662012 318B
be9913ad0ae85d8a6684963db03030bc7089b5 7KB
bfed2bc0dd02b7ae29d119665f9a3e0651c51c 3KB
共 3575 条
- 1
- 2
- 3
- 4
- 5
- 6
- 36
哔咔APP下载
- 粉丝: 79
- 资源: 247
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页