From b10fc62ae3d9ed0e0cadac58b3ec994dc920e3c5 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 16 Mar 2023 13:45:49 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E6=97=A0=E7=94=A8=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "\\" | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 "\\" diff --git "a/\\" "b/\\" deleted file mode 100644 index caab504..0000000 --- "a/\\" +++ /dev/null @@ -1,5 +0,0 @@ -合并分支:更新 -# 请输入一个提交信息以解释此合并的必要性,尤其是将一个更新后的上游分支 -# 合并到主题分支。 -# -# 以 '#' 开头的行将被忽略,而且空提交说明将会终止提交。 From 0afcaccbecc40285778b49fd7b7efe9ccb0e787a Mon Sep 17 00:00:00 2001 From: monanxiao Date: Thu, 16 Mar 2023 15:35:31 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=95=B0=E6=8D=AE=E6=98=BE=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A8=A1=E5=9E=8B=E5=85=B3=E8=81=94=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=EF=BC=8C=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E6=9D=83?= =?UTF-8?q?=E9=99=90=E5=88=86=E7=BB=84=EF=BC=8C=E9=80=89=E4=B8=AD=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E4=BA=BA=E5=91=98=E8=87=AA=E5=8A=A8=E5=85=B3=E8=81=94?= =?UTF-8?q?=E5=B0=8F=E7=BB=84=E9=87=87=E8=B4=AD=E5=88=86=E4=BD=A3=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/SupplyBrokerage.php | 21 ++++-- app/admin/controller/SupplyTeam.php | 18 +++-- app/admin/controller/nk/User.php | 12 ++++ app/admin/controller/supplychain/Merchant.php | 4 +- app/admin/model/ShopUser.php | 25 +++++++ app/admin/model/StoreOrder.php | 2 +- app/admin/model/SupplyBrokerage.php | 31 +++++++- app/admin/model/SupplyLevel.php | 1 + app/admin/model/SupplyTeam.php | 22 ++++-- app/admin/view/supply_brokerage/datalist.html | 33 ++++----- app/admin/view/supply_level/datalist.html | 7 +- app/admin/view/supply_team/datalist.html | 70 ++++++++++--------- app/admin/view/supplychain/merchant/bill.html | 33 +++++++-- public/.htaccess | 7 ++ 14 files changed, 206 insertions(+), 80 deletions(-) create mode 100644 app/admin/model/ShopUser.php diff --git a/app/admin/controller/SupplyBrokerage.php b/app/admin/controller/SupplyBrokerage.php index c1ea4d1..2a06f5d 100644 --- a/app/admin/controller/SupplyBrokerage.php +++ b/app/admin/controller/SupplyBrokerage.php @@ -36,21 +36,28 @@ class SupplyBrokerage extends BaseController $param = get_params(); $where = []; - $list = $this->model->getSupplyBrokerageList($where,$param); + $list = $this->model->with(['merchant', 'supplyChain', 'level'])->order('id desc')->select(); // 只读取来源为供应链小组的订单 + $total = $this->model->count(); foreach ($list as $k =>$v){ - $list[$k]['fa_supply_chain_id'] = Db::table('fa_supply_team')->where('id',$v['fa_supply_chain_id'])->value('name'); - $list[$k]['mer_id'] = Db::connect('shop')->table('eb_merchant')->where('mer_id',$v['mer_id'])->value('mer_name'); - $list[$k]['user_id'] = Db::table('fa_szxc_information_usermsg')->where('user_id',$v['user_id'])->value('name'); + + // $list[$k]['fa_supply_chain_id'] = Db::table('fa_supply_team')->where('id',$v['fa_supply_chain_id'])->value('name'); + // $list[$k]['mer_id'] = Db::connect('shop')->table('eb_merchant')->where('mer_id',$v['mer_id'])->value('mer_name'); + // $list[$k]['user_id'] = Db::table('fa_szxc_information_usermsg')->where('user_id',$v['user_id'])->value('name'); + if($v['status'] == 1){ $list[$k]['status'] = '成功'; }else{ $list[$k]['status'] = '待分佣'; } - $list[$k]['supply_level_id'] = Db::table('fa_supply_level')->where('id',$v['supply_level_id'])->value('name'); - $list[$k]['supply_userId'] = Db::table('cms_admin')->where('id',$v['supply_userId'])->value('nickname'); + + // $list[$k]['supply_level_id'] = Db::table('fa_supply_level')->where('id',$v['supply_level_id'])->value('name'); + // $list[$k]['supply_userId'] = Db::table('cms_admin')->where('id',$v['supply_team_id'])->value('nickname'); } - return table_assign(0, '', $list); + + $result = ['total' => $total, 'data' => $list]; + + return table_assign(0, '', $result); } else{ return view(); diff --git a/app/admin/controller/SupplyTeam.php b/app/admin/controller/SupplyTeam.php index 7f84ab0..9b17d57 100644 --- a/app/admin/controller/SupplyTeam.php +++ b/app/admin/controller/SupplyTeam.php @@ -36,13 +36,17 @@ class SupplyTeam extends BaseController $param = get_params(); $where = []; - $list = $this->model->getSupplyTeamList($where,$param); - foreach ($list as $k =>$v){ - $list[$k]['area_id'] = Db::table('fa_geo_area')->where('area_id',$v['area_id'])->value('area_name'); - $list[$k]['supply_level_id'] = Db::table('fa_supply_level')->where('id',$v['supply_level_id'])->value('name'); - $list[$k]['user_id'] = Db::table('fa_szxc_information_usermsg')->where('user_id',$v['user_id'])->value('name'); - } - return table_assign(0, '', $list); + $list = $this->model->with('level')->select(); + $total = $this->model->count(); + // $list = $this->model->getSupplyTeamList($where,$param); + // foreach ($list as $k =>$v){ + // $list[$k]['area_id'] = Db::table('fa_geo_area')->where('area_id',$v['parent_code'])->value('area_name'); + // $list[$k]['supply_level_id'] = Db::table('fa_supply_level')->where('id',$v['supply_level_id'])->value('name'); + // $list[$k]['user_id'] = Db::table('fa_szxc_information_usermsg')->where('user_id',$v['user_id'])->value('name'); + // } + $result = ['total' => $total, 'data' => $list]; + + return table_assign(0, '', $result); } else{ return view(); diff --git a/app/admin/controller/nk/User.php b/app/admin/controller/nk/User.php index c50972d..234e284 100644 --- a/app/admin/controller/nk/User.php +++ b/app/admin/controller/nk/User.php @@ -560,6 +560,18 @@ class User extends BaseController // 'village_id' => $params['village_id'] != '' ? $village['village_id'] : 0, // 'admin_id' => $admin['id'], // ]; + $phone = Db::table('fa_szxc_information_usermsg')->where('user_id', $params['id'])->value('phone'); + + // 如果为工作人员 == 服务小组采购人员 + if($params['group_id'] == 3) + { + Db::connect('shop')->table('eb_user')->where('phone', $phone)->update(['fa_supply_team_id' => 1]); // 默认分佣比例 1 为小组服务 + + }else{ + + Db::connect('shop')->table('eb_user')->where('phone', $phone)->update(['fa_supply_team_id' => null]); // 如果不是工作人员,则去除分佣 + } + if ($admin) { Db::startTrans(); try { diff --git a/app/admin/controller/supplychain/Merchant.php b/app/admin/controller/supplychain/Merchant.php index d77e5f8..cb7a9ec 100644 --- a/app/admin/controller/supplychain/Merchant.php +++ b/app/admin/controller/supplychain/Merchant.php @@ -141,7 +141,9 @@ class Merchant extends BaseController }else{ $total = StoreOrderModel::count(); - $list = StoreOrderModel::with(['merchant'])->select(); + $list = StoreOrderModel::with(['merchant', 'user']) + ->where('source', 1) // 只读取来源为供应链小组的订单 + ->select(); View::assign('url', $this->url); View::assign('list', $list); diff --git a/app/admin/model/ShopUser.php b/app/admin/model/ShopUser.php new file mode 100644 index 0000000..63d5420 --- /dev/null +++ b/app/admin/model/ShopUser.php @@ -0,0 +1,25 @@ +hasOne(Merchant::class, 'mer_id', 'mer_id'); + return $this->hasOne(ShopUser::class, 'uid', 'uid'); } } \ No newline at end of file diff --git a/app/admin/model/SupplyBrokerage.php b/app/admin/model/SupplyBrokerage.php index 4ef17d4..c6539fa 100644 --- a/app/admin/model/SupplyBrokerage.php +++ b/app/admin/model/SupplyBrokerage.php @@ -11,6 +11,35 @@ class SupplyBrokerage extends Model // 设置当前模型对应的完整数据表名称 protected $table = 'fa_supply_brokerage'; + /** + * 关联商户 + * + */ + public function merchant() + { + return $this->hasOne(Merchant::class, 'mer_id', 'mer_id'); + } + + /** + * + * 关联供应链团队 + * + */ + public function supplyChain() + { + return $this->hasOne(SupplyChain::class, 'id', 'fa_supply_chain_id'); + } + + /** + * + * 关联分佣等级 + * + */ + public function level() + { + return $this->hasOne(SupplyLevel::class, 'id', 'supply_level_id'); + } + /** * 获取分页列表 * @param $where @@ -20,7 +49,7 @@ class SupplyBrokerage extends Model { $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; $order = empty($param['order']) ? 'id desc' : $param['order']; - $list = self::where($where)->field('id,supply_sn,mer_id,fa_supply_chain_id,order_sn,order_id,user_info,user_id,supply_userId,pay_price,brokerage_price,brokerage_rate,status,supply_level_id,group_user,create_time')->order($order)->paginate($rows, false, ['query' => $param]); + $list = self::where($where)->field('id,supply_sn,mer_id,fa_supply_chain_id,order_sn,order_id,user_info,user_id,supply_team_id,pay_price,brokerage_price,brokerage_rate,status,supply_level_id,group_user,create_time')->order($order)->paginate($rows, false, ['query' => $param]); return $list; } diff --git a/app/admin/model/SupplyLevel.php b/app/admin/model/SupplyLevel.php index e0c3e46..658aff5 100644 --- a/app/admin/model/SupplyLevel.php +++ b/app/admin/model/SupplyLevel.php @@ -6,6 +6,7 @@ */ namespace app\admin\model; use think\model; + class SupplyLevel extends Model { // 设置当前模型对应的完整数据表名称 diff --git a/app/admin/model/SupplyTeam.php b/app/admin/model/SupplyTeam.php index 1b83f92..77e5ecf 100644 --- a/app/admin/model/SupplyTeam.php +++ b/app/admin/model/SupplyTeam.php @@ -10,6 +10,17 @@ class SupplyTeam extends Model { // 设置当前模型对应的完整数据表名称 protected $table = 'fa_supply_team'; + + /** + * + * 关联分佣等级 + * + */ + public function level() + { + return $this->hasOne(SupplyLevel::class, 'id', 'supply_level_id'); + } + /** * 获取分页列表 * @param $where @@ -17,10 +28,13 @@ class SupplyTeam extends Model */ public function getSupplyTeamList($where, $param) { - $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; - $order = empty($param['order']) ? 'id desc' : $param['order']; - $list = self::where($where)->field('id,name,lng,lat,area_id,brokerage,withdraw_brokerage,free_brokerage,supply_level_id,user_id')->order($order)->paginate($rows, false, ['query' => $param]); - return $list; + $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit']; + + $order = empty($param['order']) ? 'id desc' : $param['order']; + $list = self::where($where)->field('id,name,lng,lat,parent_code,brokerage,withdraw_brokerage,free_brokerage,supply_level_id,user_id') + ->order($order) + ->paginate($rows, false, ['query' => $param]); + return $list; } /** diff --git a/app/admin/view/supply_brokerage/datalist.html b/app/admin/view/supply_brokerage/datalist.html index d61742a..a7848c8 100644 --- a/app/admin/view/supply_brokerage/datalist.html +++ b/app/admin/view/supply_brokerage/datalist.html @@ -12,12 +12,6 @@
- - - - - - @@ -49,19 +43,27 @@ width: 80 },{ field: 'supply_sn', - title: '供应链佣金流水号', + title: '流水号', align: 'center', width: 100 },{ field: 'mer_id', title: '商户', align: 'center', - width: 100 + width: 100, + templet: function (d) + { + return d.merchant.mer_name; + } },{ field: 'fa_supply_chain_id', title: '供应链团队', align: 'center', - width: 100 + width: 100, + templet: function (d) + { + return d.supplyChain.name; + } },{ field: 'order_sn', title: '订单编号', @@ -99,19 +101,18 @@ width: 100 },{ field: 'brokerage_rate', - title: '分佣比例', + title: '分佣等级', align: 'center', - width: 100 + width: 300, + templet: function (d) + { + return d.level.name + ',分佣比例:' + d.level.rate + '%'; + } },{ field: 'status', title: '分佣状态', align: 'center', width: 100 - },{ - field: 'supply_level_id', - title: '分佣等级', - align: 'center', - width: 100 },{ field: 'group_user', title: '用户组', diff --git a/app/admin/view/supply_level/datalist.html b/app/admin/view/supply_level/datalist.html index 44b94d6..6f73755 100644 --- a/app/admin/view/supply_level/datalist.html +++ b/app/admin/view/supply_level/datalist.html @@ -14,7 +14,7 @@ @@ -33,7 +33,7 @@ var table = layui.table,tool = layui.tool, form = layui.form; layui.pageTable = table.render({ elem: '#supply_level', - title: '供应链团队角色列表', + title: '角色分佣', toolbar: '#toolbarDemo', url: '/admin/supply_level/datalist', page: true, @@ -51,19 +51,16 @@ field: 'name', title: '角色名称', align: 'center', - width: 100 },{ field: 'rate', title: '分佣比例', align: 'center', - width: 100 }, { fixed: 'right', field: 'right', title: '操作', toolbar: '#barDemo', - width: 136, align: 'center' } ] diff --git a/app/admin/view/supply_team/datalist.html b/app/admin/view/supply_team/datalist.html index beb1b15..35c3009 100644 --- a/app/admin/view/supply_team/datalist.html +++ b/app/admin/view/supply_team/datalist.html @@ -33,7 +33,7 @@ var table = layui.table,tool = layui.tool, form = layui.form; layui.pageTable = table.render({ elem: '#supply_team', - title: '供应链分组列表', + title: '供应链分组', toolbar: '#toolbarDemo', url: '/admin/supply_team/datalist', page: true, @@ -49,10 +49,46 @@ width: 80 },{ field: 'name', - title: '后台供应链团队分组名称', + title: '分组名称', align: 'center', width: 100 },{ + field: 'supply_level_id', + title: '分佣等级', + align: 'center', + width: 300, + templet: function (d) + { + return d.level.name + ',分佣比例:' + d.level.rate + '%'; + } + },{ + field: 'user_id', + title: '后台负责人', + align: 'center', + width: 100 + },{ + field: 'parent_code', + title: '市/区县/镇/村', + align: 'center', + width: 100 + },{ + field: 'brokerage', + title: '分佣金额', + align: 'center', + width: 100 + },{ + field: 'free_brokerage', + title: '冻结金额', + align: 'center', + width: 100 + },{ + field: 'withdraw_brokerage', + title: '已提现金额', + align: 'center', + width: 100 + + },{ + field: 'lng', title: '经度', align: 'center', @@ -62,36 +98,6 @@ title: '维度', align: 'center', width: 100 - },{ - field: 'area_id', - title: '区县ID', - align: 'center', - width: 100 - },{ - field: 'brokerage', - title: '团队分佣金额', - align: 'center', - width: 100 - },{ - field: 'withdraw_brokerage', - title: '团队分佣已提现金额', - align: 'center', - width: 100 - },{ - field: 'free_brokerage', - title: '分佣冻结金额', - align: 'center', - width: 100 - },{ - field: 'supply_level_id', - title: '团队所属等级', - align: 'center', - width: 100 - },{ - field: 'user_id', - title: '团队后台负责人ID', - align: 'center', - width: 100 }, { fixed: 'right', diff --git a/app/admin/view/supplychain/merchant/bill.html b/app/admin/view/supplychain/merchant/bill.html index d1e1ab5..51d340f 100644 --- a/app/admin/view/supplychain/merchant/bill.html +++ b/app/admin/view/supplychain/merchant/bill.html @@ -115,14 +115,35 @@ align: 'center', width:150, },{ - field: 'uid', + field: 'supply_chain_price', + title: '佣金金额', + align: 'center', + width:120, + },{ + field: 'supply_chain_rate', + title: '佣金比例', + align: 'center', + width:120, + templet: function (d) + { + return d.supply_chain_rate + '%'; + } + } + // ,{ + // field: 'uid', + // title: '用户', + // align: 'center', + // templet: function (d) + // { + // var html = d.uid; + // return html; + // }, + // width:150, + // } + ,{ + field: 'real_name', title: '用户', align: 'center', - templet: function (d) - { - var html = d.uid; - return html; - }, width:150, },{ field: 'paid', diff --git a/public/.htaccess b/public/.htaccess index e69de29..8932768 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -0,0 +1,7 @@ + + Options +FollowSymlinks -Multiviews + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] + \ No newline at end of file From dcc0135919e44471eeb741bd0be87f74a67480a7 Mon Sep 17 00:00:00 2001 From: monanxiao Date: Thu, 16 Mar 2023 16:28:19 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BE=9B=E5=BA=94=E9=93=BE=E5=88=86=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/SupplyTeam.php | 13 ++++++-- app/admin/view/supply_team/add.html | 48 ++++++++++++----------------- 2 files changed, 29 insertions(+), 32 deletions(-) diff --git a/app/admin/controller/SupplyTeam.php b/app/admin/controller/SupplyTeam.php index 9b17d57..925c7cd 100644 --- a/app/admin/controller/SupplyTeam.php +++ b/app/admin/controller/SupplyTeam.php @@ -60,7 +60,8 @@ class SupplyTeam extends BaseController { if (request()->isAjax()) { $param = get_params(); - + + return json($param); // 检验完整性 try { validate(SupplyTeamValidate::class)->check($param); @@ -70,13 +71,19 @@ class SupplyTeam extends BaseController } $this->model->addSupplyTeam($param); + }else{ $geo_area = Db::table('fa_geo_area')->where('city_code',510500)->select(); View::assign('geo_area', $geo_area); - $level = Db::table('fa_supply_level')->select(); + $level = Db::table('fa_supply_level')->whereNotIn('id', [1])->select(); View::assign('level', $level); + //获取用户信息 - $this->users = Db::table('fa_szxc_information_usermsg')->where('status',1)->field('user_id,name')->select(); + $this->users = Db::table('cms_admin') + ->where('status',1) + ->whereNotIn('id', [1]) + ->field('id, username, nickname')->select(); + View::assign('users', $this->users); return view(); } diff --git a/app/admin/view/supply_team/add.html b/app/admin/view/supply_team/add.html index bc20f04..818cdba 100644 --- a/app/admin/view/supply_team/add.html +++ b/app/admin/view/supply_team/add.html @@ -17,25 +17,11 @@

新建供应链分组

- - + + - - - - - - - - - + + - - - + + + + +
后台供应链团队分组名称*团队分组名称*
区县ID* - - 团队分佣金额*团队分佣已提现金额*
分佣冻结金额*团队所属等级*
团队所属等级* 团队后台负责人ID* - -
供应链后台团队负责人* + +
坐标 @@ -81,7 +69,6 @@ function gouguInit() { var form = layui.form, tool = layui.tool; - // 打开坐标拾取器 addrHelper.render({ key: "QNXBZ-GUKEX-I5Q4Q-THKU6-233DK-7ZBG7", //必传,腾讯地图api key 申请方法见:https://lbs.qq.com/webApi/javascriptGL/glGuide/glBasic @@ -97,6 +84,9 @@ }); //监听提交 form.on('submit(webform)', function (data) { + + console.log($('.lng').text()); + console.log($('.lat').text()); data.field.lng = $('.lng').text(); data.field.lat = $('.lat').text(); if (data.field.lng == '') { From 8437fc597f18bf6193eadd2962169379696c67b0 Mon Sep 17 00:00:00 2001 From: monanxiao Date: Fri, 17 Mar 2023 10:00:22 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=82=B9=E8=B5=9E?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Village.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/Village.php b/app/api/controller/Village.php index c6c8181..bc454a2 100644 --- a/app/api/controller/Village.php +++ b/app/api/controller/Village.php @@ -17,7 +17,7 @@ class Village extends BaseController * @var array */ protected $middleware = [ - Auth::class => ['except' => ['get_list','get_ranking_list','get_detail','get_json','get_village','thumbs_up','get_ranking_town','get_town_list'] ] + Auth::class => ['except' => ['get_list','get_ranking_list','get_detail','get_json','get_village','get_ranking_town','get_town_list'] ] ]; /** From d25e79b5de16128dc68478fd8d9062a354672bf5 Mon Sep 17 00:00:00 2001 From: monanxiao Date: Fri, 17 Mar 2023 10:05:57 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=89=E6=B1=82?= =?UTF-8?q?=E8=AF=A6=E6=83=85=EF=BC=8C=E8=8E=B7=E5=8F=96=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/ArticleComment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/ArticleComment.php b/app/api/controller/ArticleComment.php index 4f59570..282818a 100644 --- a/app/api/controller/ArticleComment.php +++ b/app/api/controller/ArticleComment.php @@ -91,7 +91,7 @@ class ArticleComment extends BaseController{ ->where('vote_id', $vote_id)->where('status', 1)->where('type',3)->page($page)->limit(20)->select(); return $this->apiSuccess('ok',['list1'=>$select,'list2'=>$select_type2,'list3'=>$select_type3]); } - public function OneList($vote_id=1,$page=1) { + public function one_list($vote_id=1,$page=1) { $select=Db::table('fa_article_comment') ->withAttr('user_info',function ($data,$value){ $find=Db::table('fa_user')->where('id',$value['user_id'])->field('nickname,avatar')->find(); From 8a88c17f397309e80206a8f66c0efa0b48cc4916 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 17 Mar 2023 10:13:38 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'app/common/model/merc?= =?UTF-8?q?hant/system/merchant/MerchantIntention.php'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除平台客服写入 --- .../merchant/system/merchant/MerchantIntention.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/common/model/merchant/system/merchant/MerchantIntention.php b/app/common/model/merchant/system/merchant/MerchantIntention.php index 662ab1f..567ac61 100644 --- a/app/common/model/merchant/system/merchant/MerchantIntention.php +++ b/app/common/model/merchant/system/merchant/MerchantIntention.php @@ -216,17 +216,6 @@ class MerchantIntention extends Model $store_service_data['create_time'] = date('Y-m-d H:i:s'); Db::connect('shop')->table('eb_store_service')->insert($store_service_data); // topservice - $top_store_service['mer_id'] = 0; - $top_store_service['uid'] = $intention['uid']; - $top_store_service['avatar'] = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/1b716202302251108516996.png'; - $top_store_service['nickname'] = $intention['mer_name']; - $top_store_service['account'] = $intention['phone']; - $top_store_service['pwd'] = password_hash('123456', PASSWORD_BCRYPT);; - $top_store_service['status'] = 1; - $top_store_service['is_open'] = 1; - $top_store_service['phone'] = $intention['phone']; - $top_store_service['create_time'] = date('Y-m-d H:i:s'); - Db::connect('shop')->table('eb_store_service')->insert($top_store_service); // 暂不开通通知 // Queue::push(SendSmsJob::class, ['tempId' => 'APPLY_MER_SUCCESS', 'id' => $smsData]); From 2a05f47b135fbac8b08c64699c90ad57298b4e83 Mon Sep 17 00:00:00 2001 From: monanxiao Date: Fri, 17 Mar 2023 11:04:19 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=9C=B0=E5=9B=BEKey?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/view/supply_team/add.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/admin/view/supply_team/add.html b/app/admin/view/supply_team/add.html index 818cdba..0cc0bbf 100644 --- a/app/admin/view/supply_team/add.html +++ b/app/admin/view/supply_team/add.html @@ -65,13 +65,13 @@