|
@@ -31,6 +31,12 @@ use App\Models\PaymentOrder;
|
|
|
class Wallet extends Controller
|
|
class Wallet extends Controller
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ public function getManualRecharge()
|
|
|
|
|
+ {
|
|
|
|
|
+ return $this->success(BalanceLogService::$manualRecharge);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @api {get} /admin/wallet/getPendingTasks 待处理任务
|
|
* @api {get} /admin/wallet/getPendingTasks 待处理任务
|
|
|
* @apiDescription 后台每隔10秒,轮询请求这个接口获取待处理的任务数,如果有待处理的任务,则播放音乐
|
|
* @apiDescription 后台每隔10秒,轮询请求这个接口获取待处理的任务数,如果有待处理的任务,则播放音乐
|
|
@@ -67,7 +73,8 @@ class Wallet extends Controller
|
|
|
* @apiParam {string} member_id 会员ID
|
|
* @apiParam {string} member_id 会员ID
|
|
|
* @apiParam {string} remark 充值/扣款 说明
|
|
* @apiParam {string} remark 充值/扣款 说明
|
|
|
*/
|
|
*/
|
|
|
- public function topUp()
|
|
|
|
|
|
|
+ public
|
|
|
|
|
+ function topUp()
|
|
|
{
|
|
{
|
|
|
DB::beginTransaction();
|
|
DB::beginTransaction();
|
|
|
try {
|
|
try {
|
|
@@ -123,7 +130,8 @@ class Wallet extends Controller
|
|
|
* @apiParam {string} [remark] 说明
|
|
* @apiParam {string} [remark] 说明
|
|
|
* - 当status =2 时,此参数必填
|
|
* - 当status =2 时,此参数必填
|
|
|
*/
|
|
*/
|
|
|
- public function verifyRecharge()
|
|
|
|
|
|
|
+ public
|
|
|
|
|
+ function verifyRecharge()
|
|
|
{
|
|
{
|
|
|
DB::beginTransaction();
|
|
DB::beginTransaction();
|
|
|
try {
|
|
try {
|
|
@@ -227,7 +235,8 @@ class Wallet extends Controller
|
|
|
* - 2 手动
|
|
* - 2 手动
|
|
|
* @apiSuccess (data) {string} data.data.image 充值转账凭证图片
|
|
* @apiSuccess (data) {string} data.data.image 充值转账凭证图片
|
|
|
*/
|
|
*/
|
|
|
- public function index()
|
|
|
|
|
|
|
+ public
|
|
|
|
|
+ function index()
|
|
|
{
|
|
{
|
|
|
try {
|
|
try {
|
|
|
request()->validate([
|
|
request()->validate([
|
|
@@ -245,7 +254,8 @@ class Wallet extends Controller
|
|
|
return $this->success($result);
|
|
return $this->success($result);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function test()
|
|
|
|
|
|
|
+ public
|
|
|
|
|
+ function test()
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
// $url = "https://ydpc28.co/api/pc28/list";
|
|
// $url = "https://ydpc28.co/api/pc28/list";
|
|
@@ -282,7 +292,7 @@ class Wallet extends Controller
|
|
|
// $result = ConfigService::syncExchangeRate();
|
|
// $result = ConfigService::syncExchangeRate();
|
|
|
$url = "https://ydpc28.co/api/pc28/list";
|
|
$url = "https://ydpc28.co/api/pc28/list";
|
|
|
$result = file_get_contents($url);
|
|
$result = file_get_contents($url);
|
|
|
- $result = json_decode($result,true);
|
|
|
|
|
|
|
+ $result = json_decode($result, true);
|
|
|
// $awards = IssueService::award([7,7,7]);
|
|
// $awards = IssueService::award([7,7,7]);
|
|
|
// $result = BetService::betSettled2('3356003',$awards);
|
|
// $result = BetService::betSettled2('3356003',$awards);
|
|
|
// $result = IssueService::sendLotteryImage($memberId, 3356000);
|
|
// $result = IssueService::sendLotteryImage($memberId, 3356000);
|