This commit is contained in:
“wanyongkang”
2024-02-22 16:13:10 +08:00
parent 7772070a58
commit c2ce947b74
9 changed files with 442 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace app\jinqiao\model;
use fastphp\base\Model;
class User extends Model
{
protected $table = 'user';
//获取用户余额
public function getUserBalance($user_id)
{
$user_balance = $this->getOne(['Id' => $user_id],'RestAmount');
return $user_balance['RestAmount'];
}
}