Compare commits
3 Commits
8a8e59b567
...
916e3eae8f
Author | SHA1 | Date |
---|---|---|
weiz | 916e3eae8f | |
unknown | 882db260c0 | |
unknown | 3e4cf909b8 |
|
@ -39,13 +39,13 @@ class UserLogic extends BaseLogic
|
|||
public static function balanceList($params): array
|
||||
{
|
||||
$search = [];
|
||||
if(isset($params['record_id'])){
|
||||
if(isset($params['record_id']) && !empty($params['record_id'])){
|
||||
$search[] = ['record_id','=',$params['record_id']];
|
||||
}
|
||||
if(isset($params['mark'])){
|
||||
if(isset($params['mark']) && !empty($params['mark'])){
|
||||
$search[] = ['mark','like','%'.$params['mark'].'%'];
|
||||
}
|
||||
if(isset($params['appid'])){
|
||||
if(isset($params['appid']) && !empty($params['appid'])){
|
||||
$app = System::field('app_id')->where('id',$params['appid'])->findOrEmpty();
|
||||
if(!$app->isEmpty()){
|
||||
$search[] = ['appid','=',$app['app_id']];
|
||||
|
@ -75,10 +75,10 @@ class UserLogic extends BaseLogic
|
|||
public static function integralList($params): array
|
||||
{
|
||||
$search = [];
|
||||
if(isset($params['mark'])){
|
||||
if(isset($params['mark']) && !empty($params['mark'])){
|
||||
$search[] = ['mark','like','%'.$params['mark'].'%'];
|
||||
}
|
||||
if(isset($params['appid'])){
|
||||
if(isset($params['appid']) && !empty($params['appid'])){
|
||||
$app = System::field('app_id')->where('id',$params['appid'])->findOrEmpty();
|
||||
if(!$app->isEmpty()){
|
||||
$search[] = ['appid','=',$app['app_id']];
|
||||
|
|
Loading…
Reference in New Issue