mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update UserTransfer.php
This commit is contained in:
parent
734c0fda04
commit
c83bf37ac8
@ -151,8 +151,8 @@ class UserTransfer extends Command
|
|||||||
*/
|
*/
|
||||||
private function getWechatInfo(int $uuid, string $type): ?array
|
private function getWechatInfo(int $uuid, string $type): ?array
|
||||||
{
|
{
|
||||||
$user = DataUser::mk()->where(['id' => $uuid])->find();
|
$user = DataUser::mk()->where(['id' => $uuid])->findOrEmpty();
|
||||||
if (empty($user)) return null;
|
if ($user->isEmpty()) return null;
|
||||||
$appid1 = sysconf('data.wxapp_appid');
|
$appid1 = sysconf('data.wxapp_appid');
|
||||||
if (strtolower(sysconf('wechat.type')) === 'api') {
|
if (strtolower(sysconf('wechat.type')) === 'api') {
|
||||||
$appid2 = sysconf('wechat.appid');
|
$appid2 = sysconf('wechat.appid');
|
||||||
@ -198,7 +198,7 @@ class UserTransfer extends Command
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询更新提现打款状态
|
* 查询更新提现打款状态
|
||||||
* @param array $item
|
* @param \think\Model|array $item
|
||||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
* @throws \WeChat\Exceptions\LocalCacheException
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
* @throws \think\admin\Exception
|
* @throws \think\admin\Exception
|
||||||
@ -206,7 +206,7 @@ class UserTransfer extends Command
|
|||||||
* @throws \think\db\exception\DbException
|
* @throws \think\db\exception\DbException
|
||||||
* @throws \think\db\exception\ModelNotFoundException
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
*/
|
*/
|
||||||
private function queryTransferBank(array $item)
|
private function queryTransferBank($item)
|
||||||
{
|
{
|
||||||
$config = $this->getConfig($item['uuid']);
|
$config = $this->getConfig($item['uuid']);
|
||||||
[$config['appid'], $config['openid']] = [$item['appid'], $item['openid']];
|
[$config['appid'], $config['openid']] = [$item['appid'], $item['openid']];
|
||||||
@ -236,7 +236,7 @@ class UserTransfer extends Command
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询更新提现打款状态
|
* 查询更新提现打款状态
|
||||||
* @param array $item
|
* @param \think\Model|array $item
|
||||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
* @throws \WeChat\Exceptions\LocalCacheException
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
* @throws \think\admin\Exception
|
* @throws \think\admin\Exception
|
||||||
@ -244,7 +244,7 @@ class UserTransfer extends Command
|
|||||||
* @throws \think\db\exception\DbException
|
* @throws \think\db\exception\DbException
|
||||||
* @throws \think\db\exception\ModelNotFoundException
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
*/
|
*/
|
||||||
private function queryTransferWallet(array $item)
|
private function queryTransferWallet($item)
|
||||||
{
|
{
|
||||||
$config = $this->getConfig($item['uuid']);
|
$config = $this->getConfig($item['uuid']);
|
||||||
[$config['appid'], $config['openid']] = [$item['appid'], $item['openid']];
|
[$config['appid'], $config['openid']] = [$item['appid'], $item['openid']];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user