删除多余的模型引用方法

This commit is contained in:
wangxiaowei 2024-09-02 17:31:20 +08:00
parent 708f800c1c
commit 04e068c1fc

@ -589,7 +589,6 @@ class PayNotifyLogic
// 插入提现记录
$save_record = Db::name("subsidy_withdrawal_record")->save($dat);
if ($save_record) {
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
$send = array(
'user_id' => $v['user_id'],
'mobile' => $first_leader_user['mobile'],
@ -619,7 +618,6 @@ class PayNotifyLogic
// 插入提现记录
$save_record = Db::name("subsidy_withdrawal_record")->save($dat);
if ($save_record) {
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
$send = array(
'user_id' => $v['user_id'],
'mobile' => $first_leader_user['mobile'],
@ -690,7 +688,6 @@ class PayNotifyLogic
// 插入提现记录
$save_record = Db::name("subsidy_withdrawal_record")->save($dat);
if ($save_record) {
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
$send = array(
'user_id' => $v['user_id'],
'mobile' => $first_leader_user['mobile'],
@ -724,7 +721,6 @@ class PayNotifyLogic
// 插入提现记录
$save_record = Db::name("subsidy_withdrawal_record")->save($dat);
if ($save_record) {
$user = Db::name('user')->field('nickname, mobile')->where('id', $v['user_id'])->find();
$send = array(
'user_id' => $v['user_id'],
'mobile' => $first_leader_user['mobile'],