更新文件

This commit is contained in:
wangxiaowei 2024-08-02 14:37:23 +08:00
parent 7f528f2d11
commit c746c5a8fa
1393 changed files with 3130 additions and 2179 deletions

0
app/.htaccess Normal file → Executable file

0
app/AppService.php Normal file → Executable file

0
app/ExceptionHandle.php Normal file → Executable file

0
app/Request.php Normal file → Executable file

0
app/admin/command/Hello.php Normal file → Executable file

0
app/admin/config/project.php Normal file → Executable file

0
app/admin/controller/Admin.php Normal file → Executable file

0
app/admin/controller/Auth.php Normal file → Executable file

0
app/admin/controller/Dispatch.php Normal file → Executable file

0
app/admin/controller/Express.php Normal file → Executable file

0
app/admin/controller/File.php Normal file → Executable file

0
app/admin/controller/Footprint.php Normal file → Executable file

0
app/admin/controller/Freight.php Normal file → Executable file

1
app/admin/controller/HotList.php Normal file → Executable file

@ -7,7 +7,6 @@ use app\admin\logic\HotListLogic;
use app\common\basics\AdminBase;
use app\common\server\JsonServer;
use think\facade\Db;
use app\common\enum\GoodsEnum;
class HotList extends AdminBase
{

4
app/admin/controller/Index.php Normal file → Executable file

@ -31,6 +31,7 @@ use think\facade\Config;
use app\admin\logic\shop\LocalStoreLogic;
use app\admin\logic\distribution\ApplyLogic;
class Index extends AdminBase
{
/**
@ -89,8 +90,7 @@ class Index extends AdminBase
private static function get_unaudited()
{
$data['localStoreCount'] = LocalStoreLogic::get_unaudited_data();
// $data['distributionMemberCount'] = ApplyLogic::get_unaudited_data();
$data['distributionMemberCount'] = 0;
$data['distributionMemberCount'] = ApplyLogic::get_unaudited_data();
return $data;
}
}

9
app/admin/controller/Login.php Normal file → Executable file

@ -24,16 +24,7 @@ namespace app\admin\controller;
use app\admin\logic\LoginLogic;
use app\admin\validate\LoginValidate;
use app\common\basics\AdminBase;
use app\common\enum\NoticeEnum;
use app\common\enum\PayEnum;
use app\common\logic\AccountLogLogic;
use app\common\model\AccountLog;
use app\common\model\billions\Billions;
use app\common\model\user\User;
use app\common\server\JsonServer;
use app\common\server\WeChatServer;
use EasyWeChat\Factory;
use app\common\model\RechargeOrder;
class Login extends AdminBase
{

0
app/admin/controller/MallNews.php Normal file → Executable file

0
app/admin/controller/NewGoods.php Normal file → Executable file

0
app/admin/controller/Recharge.php Normal file → Executable file

0
app/admin/controller/Role.php Normal file → Executable file

0
app/admin/controller/Seckill.php Normal file → Executable file

0
app/admin/controller/Statistics.php Normal file → Executable file

0
app/admin/controller/Upload.php Normal file → Executable file

0
app/admin/controller/account_log/AccountLog.php Normal file → Executable file

0
app/admin/controller/activity_area/Area.php Normal file → Executable file

0
app/admin/controller/activity_area/Goods.php Normal file → Executable file

0
app/admin/controller/after_sale/AfterSale.php Normal file → Executable file

0
app/admin/controller/bargain/Bargain.php Normal file → Executable file

0
app/admin/controller/common/Goods.php Normal file → Executable file

0
app/admin/controller/community/CommunityArticle.php Normal file → Executable file

0
app/admin/controller/community/CommunityCategory.php Normal file → Executable file

0
app/admin/controller/community/CommunityComment.php Normal file → Executable file

0
app/admin/controller/community/CommunitySetting.php Normal file → Executable file

0
app/admin/controller/community/CommunityTopic.php Normal file → Executable file

0
app/admin/controller/content/Article.php Normal file → Executable file

0
app/admin/controller/content/ArticleCategory.php Normal file → Executable file

0
app/admin/controller/content/Help.php Normal file → Executable file

0
app/admin/controller/content/HelpCategory.php Normal file → Executable file

0
app/admin/controller/coupon/ShopCoupon.php Normal file → Executable file

0
app/admin/controller/decoration/Ad.php Normal file → Executable file

0
app/admin/controller/decoration/AdPosition.php Normal file → Executable file

0
app/admin/controller/decoration/BottomNav.php Normal file → Executable file

0
app/admin/controller/decoration/MenuDecorate.php Normal file → Executable file

0
app/admin/controller/director/Director.php Normal file → Executable file

0
app/admin/controller/distribution/Apply.php Normal file → Executable file

0
app/admin/controller/distribution/Center.php Normal file → Executable file

@ -4,7 +4,6 @@ namespace app\admin\controller\distribution;
use app\admin\logic\distribution\DistributionLevelLogic;
use app\admin\logic\distribution\DistributionMemberLogic;
use app\common\basics\AdminBase;
use app\common\model\distribution\DistributionMemberApply;
use app\common\server\JsonServer;
/**
@ -118,6 +117,7 @@ class DistributionMember extends AdminBase
{
$params = $this->request->get();
$user = DistributionMemberLogic::getMemberApply($params);
return view('', [
'user' => $user
]);

0
app/admin/controller/distribution/Member.php Normal file → Executable file

0
app/admin/controller/distribution/Record.php Normal file → Executable file

0
app/admin/controller/distribution/Setting.php Normal file → Executable file

0
app/admin/controller/finance/Card.php Normal file → Executable file

3
app/admin/controller/finance/Finance.php Normal file → Executable file

@ -21,8 +21,8 @@ namespace app\admin\controller\finance;
use app\common\basics\AdminBase;
use app\admin\logic\finance\FinanceLogic;
use app\common\server\JsonServer;
use think\facade\View;
use app\common\server\JsonServer;
/**
* 财务中心
@ -38,6 +38,7 @@ class Finance extends AdminBase
$result = FinanceLogic::shop($post);
return JsonServer::success('', $result);
}
View::assign('shop', FinanceLogic::shop());
return view();
}

0
app/admin/controller/finance/Integral.php Normal file → Executable file

0
app/admin/controller/finance/Shop.php Normal file → Executable file

1
app/admin/controller/finance/User.php Normal file → Executable file

@ -72,6 +72,7 @@ class User extends AdminBase
date('Y-m-d 23:59:59', time())
];
$summary = WithdrawLogic::summary();
return view('', [
'today' => $today,
'yesterday' => $yesterday,

0
app/admin/controller/goods/Brand.php Normal file → Executable file

0
app/admin/controller/goods/Category.php Normal file → Executable file

0
app/admin/controller/goods/Column.php Normal file → Executable file

0
app/admin/controller/goods/Comment.php Normal file → Executable file

45
app/admin/controller/goods/Goods.php Normal file → Executable file

@ -23,15 +23,11 @@ namespace app\admin\controller\goods;
use app\common\basics\AdminBase;
use app\common\enum\GoodsEnum;
use app\common\model\goods\GoodsBrand;
use app\common\model\goods\Goodscontact;
use app\common\model\goods\GoodsItem;
use app\common\model\goods\GoodsUnit;
use app\common\model\Freight;
use app\common\model\goods\Supplier;
use app\common\model\goods\Goods as GoodsModel;
use app\common\model\order\Order;
use app\common\model\order\OrderGoods;
use app\common\model\user\UserAddress;
use app\common\server\JsonServer;
use app\admin\logic\goods\CategoryLogic as MallCategoryLogic;
use app\admin\logic\goods\GoodsLogic;
@ -39,8 +35,12 @@ use app\admin\logic\goods\ColumnLogic;
use app\shop\logic\goods\CategoryLogic as ShopCategoryLogic;
use think\exception\ValidateException;
use app\admin\validate\goods\GoodsValidate;
use EasyWeChat\Factory;
use weixin\Getgzopenid;
use app\common\model\order\Order;
use app\common\model\order\OrderGoods;
use app\common\model\user\UserAddress;
use app\common\model\goods\Goodscontact;
/**
* 商品管理
* Class Goods
@ -156,41 +156,6 @@ class Goods extends AdminBase
}
return JsonServer::error('设置失败');
}
// $a = \app\common\model\goods\Goods::where("del",0)->select();
// foreach($a as $k=>$v){
// $d = array();
// $gi = GoodsItem::where("goods_id",$v['id'])->select();
// foreach($gi as $key=>$value){
// $da = array();
// if($key==0){
// if($v['wholesale_percent'] >0){
// $d['wholesale_price'] = round($value['wh_price']*(100+$v['wholesale_percent'])/100,2);
// }
// if($v['purchase_percent'] >0){
// $d['purchase_price'] = round($value['pu_price']*(100+$v['purchase_percent'])/100,2);
// }
// if($v['issuing_percent'] >0){
// $d['issuing_price'] = round($value['is_price']*(100+$v['issuing_percent'])/100,2);
// }
// if(!empty($d)){
// $goods_msg = \app\common\model\goods\Goods::where("id",$v['id'])->update($d);
// }
// }
// if($v['wholesale_percent'] >0){
// $da['wholesale_pce'] = round($value['wh_price']*(100+$v['wholesale_percent'])/100,2);
// }
// if($v['purchase_percent'] >0){
// $da['purchase_price'] = round($value['pu_price']*(100+$v['purchase_percent'])/100,2);
// }
// if($v['issuing_percent'] >0){
// $da['issuing_price'] = round($value['is_price']*(100+$v['issuing_percent'])/100,2);
// }
// if(!empty($da)){
// GoodsItem::where("id",$value['id'])->update($da);
// }
//
// }
// }
$goods_id = $this->request->get('goods_id', '', 'intval');
$goods_detail = GoodsModel::find($goods_id);
$goods_detail['column_ids'] = $goods_detail['column_ids'] ? explode(',', $goods_detail['column_ids']) : [];

0
app/admin/controller/goods/Price.php Normal file → Executable file

0
app/admin/controller/goods/Unit.php Normal file → Executable file

0
app/admin/controller/integral/IntegralGoods.php Normal file → Executable file

0
app/admin/controller/integral/IntegralOrder.php Normal file → Executable file

0
app/admin/controller/kefu/Kefu.php Normal file → Executable file

0
app/admin/controller/kefu/KefuLang.php Normal file → Executable file

0
app/admin/controller/live/LiveGoods.php Normal file → Executable file

0
app/admin/controller/live/LiveRoom.php Normal file → Executable file

0
app/admin/controller/order/Invoice.php Normal file → Executable file

0
app/admin/controller/order/Jicai.php Normal file → Executable file

0
app/admin/controller/order/Order.php Normal file → Executable file

0
app/admin/controller/procurement/Level.php Normal file → Executable file

0
app/admin/controller/procurement/Procurement.php Normal file → Executable file

0
app/admin/controller/procurement/Treaty.php Normal file → Executable file

0
app/admin/controller/seckill/SeckillGoods.php Normal file → Executable file

0
app/admin/controller/seckill/SeckillTime.php Normal file → Executable file

0
app/admin/controller/setting/Basic.php Normal file → Executable file

0
app/admin/controller/setting/CustomerService.php Normal file → Executable file

0
app/admin/controller/setting/HotSearch.php Normal file → Executable file

0
app/admin/controller/setting/Map.php Normal file → Executable file

0
app/admin/controller/setting/MarketingConfig.php Normal file → Executable file

0
app/admin/controller/setting/NoticeSetting.php Normal file → Executable file

1
app/admin/controller/setting/PayConfig.php Normal file → Executable file

@ -145,4 +145,5 @@ class PayConfig extends AdminBase
}
return view('', ['info' => PayConfigLogic::info('xiny')]);
}
}

0
app/admin/controller/setting/Register.php Normal file → Executable file

0
app/admin/controller/setting/ShopWithdrawal.php Normal file → Executable file

0
app/admin/controller/setting/Sms.php Normal file → Executable file

0
app/admin/controller/setting/StorageConfig.php Normal file → Executable file

0
app/admin/controller/setting/Transaction.php Normal file → Executable file

0
app/admin/controller/setting/User.php Normal file → Executable file

0
app/admin/controller/shop/Apply.php Normal file → Executable file

0
app/admin/controller/shop/Auth.php Normal file → Executable file

0
app/admin/controller/shop/Category.php Normal file → Executable file

15
app/admin/controller/shop/LocalStore.php Normal file → Executable file

@ -47,6 +47,18 @@ class LocalStore extends AdminBase
]);
}
public function del() {
if ($this->request->isAjax()) {
$post = $this->request->post();
if (LocalStoreLogic::del($post['id'])) {
return JsonServer::success('删除成功');
}
}
return JsonServer::success('删除成功');
}
/**
* @notes 审核操作
*/
@ -94,8 +106,9 @@ class LocalStore extends AdminBase
{
if ($this->request->isAjax()) {
$post = $this->request->post();
if ($post['lstore_id'] > 0){
$result = LocalStoreLogic::getPayImage($post['lstore_id']);
$result = LocalStoreLogic::getPayImage($post['user_id'], $post['lstore_id']);
if ($result['pay_image']) {
$path = parse_url($result['pay_image'])['path'];
$url = (string)url("index/download/downloadLocalStoreErcodeImage", ['url' => $path], false, true);

0
app/admin/controller/shop/Store.php Normal file → Executable file

0
app/admin/controller/shop/Treaty.php Normal file → Executable file

0
app/admin/controller/sign_daily/SignDaily.php Normal file → Executable file

Some files were not shown because too many files have changed in this diff Show More