模版提交修改
This commit is contained in:
@@ -8,7 +8,7 @@ use support\think\Db;
|
||||
class ShopInfo
|
||||
{
|
||||
|
||||
public static function moeny($money, $shop_id, $type = 1)
|
||||
public static function moeny($money, $shop_id, $reason, $type = 1)
|
||||
{
|
||||
$shop_money = Db::table('sms_shop_money')->where(['shop_id' => $shop_id])->find();
|
||||
if($shop_money) {
|
||||
@@ -26,6 +26,7 @@ class ShopInfo
|
||||
'shop_id' => $shop_id,
|
||||
'type' => $type,
|
||||
'expense' => $money,
|
||||
'reason' => $reason,
|
||||
'balance' => $befor_money,
|
||||
]);
|
||||
}
|
||||
@@ -64,7 +65,7 @@ class ShopInfo
|
||||
{
|
||||
$data_arr = self::javaGetUserList($k_user_params, $page, $size);
|
||||
$for_user_list = [];
|
||||
if($data_arr['code'] == 0) {
|
||||
if($data_arr['code'] == 200) {
|
||||
$user_list = self::evnuserlist($data_arr['data']['records']);
|
||||
if($data_arr['data']['totalPage'] > 1) {
|
||||
for ($i = 2; $i <= $data_arr['data']['totalPage']; $i++) {
|
||||
@@ -92,7 +93,7 @@ class ShopInfo
|
||||
$push_user[] = [
|
||||
'user_id' => $user['id'],
|
||||
'phone' => $user['phone'],
|
||||
'nick_name' => $user['nick_name'],
|
||||
'nick_name' => isset($user['nick_name'])?$user['nick_name']:$user['nickName'],
|
||||
];
|
||||
}
|
||||
return $push_user;
|
||||
|
||||
Reference in New Issue
Block a user