Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uc_card
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhoujun
uc_card
Commits
6f911298
Commit
6f911298
authored
Nov 24, 2021
by
顾敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
3ab97af2
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
32 additions
and
305 deletions
+32
-305
src/app/Aldzn/UserCoupon.php
src/app/Aldzn/UserCoupon.php
+0
-12
src/app/Aldzn/UserForbid.php
src/app/Aldzn/UserForbid.php
+0
-12
src/app/Aldzn/UserRefund.php
src/app/Aldzn/UserRefund.php
+0
-12
src/app/Aldzn/UserTotalPay.php
src/app/Aldzn/UserTotalPay.php
+0
-12
src/app/Console/Commands/Calculate_refund.php
src/app/Console/Commands/Calculate_refund.php
+0
-87
src/app/Console/Commands/SearchRefund.php
src/app/Console/Commands/SearchRefund.php
+0
-85
src/app/Console/Commands/UploadOOSImg.php
src/app/Console/Commands/UploadOOSImg.php
+1
-5
src/app/Http/Controllers/Card/HomeController.php
src/app/Http/Controllers/Card/HomeController.php
+0
-2
src/app/Http/Controllers/Platform/HomeController.php
src/app/Http/Controllers/Platform/HomeController.php
+1
-5
src/app/Http/Controllers/Platform/UserController.php
src/app/Http/Controllers/Platform/UserController.php
+3
-7
src/app/Http/Controllers/ToolController.php
src/app/Http/Controllers/ToolController.php
+6
-12
src/app/Http/Controllers/WX/SignController.php
src/app/Http/Controllers/WX/SignController.php
+0
-4
src/app/Http/Kernel.php
src/app/Http/Kernel.php
+2
-2
src/app/Models/AldGift.php
src/app/Models/AldGift.php
+15
-0
src/app/Services/UtilService.php
src/app/Services/UtilService.php
+4
-48
No files found.
src/app/Aldzn/UserCoupon.php
deleted
100644 → 0
View file @
3ab97af2
<?php
namespace
App\Aldzn
;
use
Illuminate\Database\Eloquent\Model
;
class
UserCoupon
extends
Model
{
protected
$connection
=
'aldzn_data'
;
protected
$table
=
"game_user_coupon"
;
public
$timestamps
=
false
;
}
src/app/Aldzn/UserForbid.php
deleted
100644 → 0
View file @
3ab97af2
<?php
namespace
App\Aldzn
;
use
Illuminate\Database\Eloquent\Model
;
class
UserForbid
extends
Model
{
protected
$connection
=
'aldzn_data'
;
protected
$table
=
"forbid_users"
;
public
$timestamps
=
false
;
}
src/app/Aldzn/UserRefund.php
deleted
100644 → 0
View file @
3ab97af2
<?php
namespace
App\Aldzn
;
use
Illuminate\Database\Eloquent\Model
;
class
UserRefund
extends
Model
{
protected
$connection
=
'aldzn_data'
;
protected
$table
=
"game_user_refund"
;
public
$timestamps
=
false
;
}
src/app/Aldzn/UserTotalPay.php
deleted
100644 → 0
View file @
3ab97af2
<?php
namespace
App\Aldzn
;
use
Illuminate\Database\Eloquent\Model
;
class
UserTotalPay
extends
Model
{
protected
$connection
=
'aldzn_data'
;
protected
$table
=
"game_user_total_pay"
;
public
$timestamps
=
false
;
}
src/app/Console/Commands/Calculate_refund.php
deleted
100644 → 0
View file @
3ab97af2
<?php
namespace
App\Console\Commands
;
use
Illuminate\Console\Command
;
use
App\Aldzn\UserTotalPay
;
use
App\Aldzn\UserCoupon
;
use
App\Aldzn\UserRefund
;
use
App\Aldzn\UserForbid
;
class
Calculate_refund
extends
Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected
$signature
=
'calc:refund'
;
/**
* The console command description.
*
* @var string
*/
protected
$description
=
'计算阿拉德之怒玩家退款'
;
/**
* Create a new command instance.
*
* @return void
*/
public
function
__construct
()
{
parent
::
__construct
();
}
/**
* Execute the console command.
*
* @return mixed
*/
public
function
handle
()
{
$this
->
info
(
"start processing"
);
UserTotalPay
::
orderBy
(
"ouid"
)
->
chunk
(
100
,
function
(
$payRows
)
{
foreach
(
$payRows
as
$payRow
)
{
$channel
=
$payRow
[
'channel_id'
];
$ouid
=
$payRow
[
'ouid'
];
$refund
=
UserRefund
::
where
(
'channel_id'
,
$channel
)
->
where
(
"ouid"
,
$ouid
)
->
first
([
'id'
]);
if
(
!
empty
(
$refund
))
{
continue
;
}
$this
->
line
(
$channel
.
" -> "
.
$ouid
);
$totalPay
=
UserTotalPay
::
where
(
"channel_id"
,
$channel
)
->
where
(
"ouid"
,
$ouid
)
->
sum
(
'total_payamount'
);
$coupon
=
UserCoupon
::
where
(
"channel_id"
,
$channel
)
->
where
(
"ouid"
,
$ouid
)
->
sum
(
'coupon'
);
$unblock
=
UserForbid
::
where
(
"channel"
,
$channel
)
->
where
(
"accid"
,
$ouid
)
->
value
(
'unblock'
);
$isBlock
=
0
;
if
(
$unblock
===
0
)
{
$isBlock
=
1
;
}
$oCoin
=
0
;
if
(
$coupon
>
0
)
{
$oCoin
=
ceil
(
$coupon
/
10
);
}
if
(
$oCoin
>
$totalPay
)
{
$oCoin
=
ceil
(
$totalPay
);
}
if
(
$isBlock
==
1
)
{
$oCoin
=
0
;
}
$userRefund
=
new
UserRefund
();
$userRefund
->
platform_id
=
$payRow
[
'platform_id'
];
$userRefund
->
channel_id
=
$channel
;
$userRefund
->
ouid
=
$ouid
;
$userRefund
->
coupon
=
$coupon
;
$userRefund
->
total_pay
=
$totalPay
;
$userRefund
->
is_block
=
$isBlock
;
$userRefund
->
o_coin
=
$oCoin
;
$userRefund
->
save
();
}
});
$this
->
info
(
"All done"
);
}
}
src/app/Console/Commands/SearchRefund.php
deleted
100644 → 0
View file @
3ab97af2
<?php
namespace
App\Console\Commands
;
use
Illuminate\Console\Command
;
use
App\Aldzn\UserTotalPay
;
use
App\Aldzn\UserCoupon
;
use
App\Aldzn\UserRefund
;
use
App\Aldzn\UserForbid
;
class
SearchRefund
extends
Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected
$signature
=
'search:refund {channel : 渠道ID} {ouid : 账号ID}'
;
/**
* The console command description.
*
* @var string
*/
protected
$description
=
'查询阿拉德玩家退款'
;
/**
* Create a new command instance.
*
* @return void
*/
public
function
__construct
()
{
parent
::
__construct
();
}
/**
* Execute the console command.
*
* @return mixed
*/
public
function
handle
()
{
$channel
=
$this
->
argument
(
'channel'
);
$ouid
=
$this
->
argument
(
'ouid'
);
$refund
=
UserRefund
::
where
(
'channel_id'
,
$channel
)
->
where
(
"ouid"
,
$ouid
)
->
first
([
'id'
]);
if
(
!
empty
(
$refund
))
{
$this
->
line
(
"历史数据"
);
$this
->
info
(
json_encode
(
$refund
,
JSON_PRETTY_PRINT
));
return
;
}
$payRow
=
UserTotalPay
::
where
(
"channel_id"
,
$channel
)
->
where
(
"ouid"
,
$ouid
)
->
first
();
$this
->
line
(
$channel
.
" -> "
.
$ouid
);
$totalPay
=
UserTotalPay
::
where
(
"channel_id"
,
$channel
)
->
where
(
"ouid"
,
$ouid
)
->
sum
(
'total_payamount'
);
$coupon
=
UserCoupon
::
where
(
"channel_id"
,
$channel
)
->
where
(
"ouid"
,
$ouid
)
->
sum
(
'coupon'
);
$unblock
=
UserForbid
::
where
(
"channel"
,
$channel
)
->
where
(
"accid"
,
$ouid
)
->
value
(
'unblock'
);
$isBlock
=
0
;
if
(
$unblock
===
0
)
{
$isBlock
=
1
;
}
$oCoin
=
0
;
if
(
$coupon
>
0
)
{
$oCoin
=
ceil
(
$coupon
/
10
);
}
if
(
$oCoin
>
$totalPay
)
{
$oCoin
=
ceil
(
$totalPay
);
}
if
(
$isBlock
==
1
)
{
$oCoin
=
0
;
}
$userRefund
=
new
UserRefund
();
$userRefund
->
platform_id
=
$payRow
[
'platform_id'
]
??
''
;
$userRefund
->
channel_id
=
$channel
;
$userRefund
->
ouid
=
$ouid
;
$userRefund
->
coupon
=
$coupon
;
$userRefund
->
total_pay
=
$totalPay
;
$userRefund
->
is_block
=
$isBlock
;
$userRefund
->
o_coin
=
$oCoin
;
$userRefund
->
save
();
$this
->
info
(
json_encode
(
$userRefund
,
JSON_PRETTY_PRINT
));
}
}
src/app/Console/Commands/UploadOOSImg.php
View file @
6f911298
<?php
<?php
namespace
App\Console\Commands
;
namespace
App\Console\Commands
;
use
Carbon\Carbon
;
use
Illuminate\Console\Command
;
use
Illuminate\Console\Command
;
use
App\Models\WxUserImg
;
use
App\Models\WxUserImg
;
use
App\Services\UploadServer
;
use
App\Services\UploadServer
;
use
Illuminate\Support\Facades\Cache
;
use
Illuminate\Support\Facades\DB
;
class
UploadOOSImg
extends
Command
class
UploadOOSImg
extends
Command
{
{
...
@@ -29,8 +27,6 @@ class UploadOOSImg extends Command
...
@@ -29,8 +27,6 @@ class UploadOOSImg extends Command
/**
/**
* Create a new command instance.
* Create a new command instance.
* @param ProductOrder $productOrder
* @param ScoreDetail $scoreDetail
*/
*/
public
function
__construct
()
public
function
__construct
()
{
{
...
...
src/app/Http/Controllers/Card/HomeController.php
View file @
6f911298
...
@@ -28,8 +28,6 @@ class HomeController extends Controller
...
@@ -28,8 +28,6 @@ class HomeController extends Controller
*/
*/
public
function
getHome
(
Request
$request
)
public
function
getHome
(
Request
$request
)
{
{
$isWx
=
UtilService
::
getIsWx
(
$_SERVER
[
'HTTP_USER_AGENT'
]);
if
(
!
$isWx
)
return
redirect
(
route
(
'wxIndex'
));
$data
=
[];
$data
=
[];
$isWx
=
UtilService
::
getIsWx
(
$_SERVER
[
'HTTP_USER_AGENT'
]);
$isWx
=
UtilService
::
getIsWx
(
$_SERVER
[
'HTTP_USER_AGENT'
]);
if
(
!
$isWx
)
return
redirect
(
route
(
"wxIndex"
));
if
(
!
$isWx
)
return
redirect
(
route
(
"wxIndex"
));
...
...
src/app/Http/Controllers/Platform/HomeController.php
View file @
6f911298
...
@@ -4,12 +4,8 @@ namespace App\Http\Controllers\Platform;
...
@@ -4,12 +4,8 @@ namespace App\Http\Controllers\Platform;
use
App\Http\Controllers\Controller
;
use
App\Http\Controllers\Controller
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Cache
;
use
Illuminate\Support\Facades\Redis
;
use
App\Services\UtilService
;
use
App\Services\UtilService
;
use
App\Models\AldGift
;
use
App\Models\User
;
use
App\Models\UserExtra
;
class
HomeController
extends
Controller
class
HomeController
extends
Controller
{
{
...
...
src/app/Http/Controllers/Platform/UserController.php
View file @
6f911298
...
@@ -6,15 +6,11 @@ use App\Http\Controllers\Controller;
...
@@ -6,15 +6,11 @@ use App\Http\Controllers\Controller;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Cache
;
use
Illuminate\Support\Facades\Cache
;
use
Illuminate\Support\Facades\Validator
;
use
Illuminate\Support\Facades\Validator
;
use
App\Models\AldGift
;
use
App\Models\User
;
use
App\Models\User
;
use
App\Models\UserExtra
;
use
App\Models\UserExtra
;
use
App\Services\RealnameAuthService
;
use
Illuminate\Support\Facades\Log
;
use
App\Services\UtilService
;
use
App\Services\UtilService
;
use
App\Services\AldGmService
;
use
App\Services\AldGmService
;
use
Illuminate\Support\Facades\Artisan
;
use
App\Aldzn\UserRefund
;
class
UserController
extends
Controller
class
UserController
extends
Controller
{
{
...
@@ -239,8 +235,8 @@ class UserController extends Controller
...
@@ -239,8 +235,8 @@ class UserController extends Controller
Cache
::
put
(
$errTimesKey
,
$errTimes
+
1
,
$expire
);
Cache
::
put
(
$errTimesKey
,
$errTimes
+
1
,
$expire
);
return
$this
->
jsonReturn
(
1017
,
"该Orange识别码不存在请重新输入"
);
return
$this
->
jsonReturn
(
1017
,
"该Orange识别码不存在请重新输入"
);
}
}
$channel
=
$codeInfo
[
'channel'
]
??
''
;
//
$channel = $codeInfo['channel'] ?? '';
$ouid
=
$codeInfo
[
'userId'
]
??
''
;
//
$ouid = $codeInfo['userId'] ?? '';
// if (!empty($channel) && !empty($ouid) && $channel != "mg") {
// if (!empty($channel) && !empty($ouid) && $channel != "mg") {
// //Artisan::call("search:refund", ['channel' => $channel, 'ouid' => $ouid]);
// //Artisan::call("search:refund", ['channel' => $channel, 'ouid' => $ouid]);
// //$oCoin = UserRefund::where('channel_id', $codeInfo['channel'])
// //$oCoin = UserRefund::where('channel_id', $codeInfo['channel'])
...
...
src/app/Http/Controllers/ToolController.php
View file @
6f911298
...
@@ -4,15 +4,9 @@ namespace App\Http\Controllers;
...
@@ -4,15 +4,9 @@ namespace App\Http\Controllers;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Cache
;
use
Illuminate\Support\Facades\Cache
;
use
Illuminate\Support\Facades\Redis
;
use
App\Services\Aliyunsms
;
use
App\Services\Aliyunsms
;
use
App\Services\RealnameAuthService
;
use
Illuminate\Support\Facades\Log
;
use
App\Services\UtilService
;
use
App\Services\UtilService
;
use
App\Models\User
;
use
App\Models\UserExtra
;
use
App\Models\AldGift
;
use
Illuminate\Support\Facades\Validator
;
class
ToolController
extends
Controller
class
ToolController
extends
Controller
{
{
...
@@ -42,9 +36,9 @@ class ToolController extends Controller
...
@@ -42,9 +36,9 @@ class ToolController extends Controller
return
$this
->
jsonReturn
(
4003
,
"当天手机发送短信达上限"
);
return
$this
->
jsonReturn
(
4003
,
"当天手机发送短信达上限"
);
}
}
//
$authcode = $this->genAuthCode(6);
$authcode
=
$this
->
genAuthCode
(
6
);
$authcode
=
666666
;
//
$authcode = 666666;
Cache
::
put
(
"sms_auth_code:"
.
$mobile
,
$authcode
,
$expireSeconds
);
Cache
::
put
(
"sms_auth_code:"
.
$mobile
,
$authcode
,
$expireSeconds
);
Cache
::
put
(
"sms:limit_mobile:"
.
$mobile
,
1
,
60
);
Cache
::
put
(
"sms:limit_mobile:"
.
$mobile
,
1
,
60
);
...
@@ -53,9 +47,9 @@ class ToolController extends Controller
...
@@ -53,9 +47,9 @@ class ToolController extends Controller
Cache
::
put
(
"sms:limit_mobile_daily:"
.
$mobile
.
":"
.
$todayDate
,
$mobileDayLimit
+
1
,
3600
*
24
);
Cache
::
put
(
"sms:limit_mobile_daily:"
.
$mobile
.
":"
.
$todayDate
,
$mobileDayLimit
+
1
,
3600
*
24
);
//
$aliyunsms = new Aliyunsms();
$aliyunsms
=
new
Aliyunsms
();
//
$ret = $aliyunsms->send($mobile, $authcode);
$ret
=
$aliyunsms
->
send
(
$mobile
,
$authcode
);
$ret
=
1
;
//
$ret = 1;
if
(
$ret
==
1
)
{
if
(
$ret
==
1
)
{
return
$this
->
jsonReturn
(
0
,
"验证码发送成功"
);
return
$this
->
jsonReturn
(
0
,
"验证码发送成功"
);
}
else
{
}
else
{
...
...
src/app/Http/Controllers/WX/SignController.php
View file @
6f911298
...
@@ -2,13 +2,9 @@
...
@@ -2,13 +2,9 @@
namespace
App\Http\Controllers\WX
;
namespace
App\Http\Controllers\WX
;
use
App\Http\Controllers\Controller
;
use
App\Http\Controllers\Controller
;
use
App\Models\WxSignModel
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Validator
;
use
Throwable
;
use
Exception
;
use
Exception
;
use
Carbon\Carbon
;
use
Carbon\Carbon
;
use
Illuminate\Validation\Rule
;
use
Illuminate\Support\Facades\Redis
;
use
Illuminate\Support\Facades\Redis
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Support\Facades\Schema
;
...
...
src/app/Http/Kernel.php
View file @
6f911298
...
@@ -52,12 +52,12 @@ class Kernel extends HttpKernel
...
@@ -52,12 +52,12 @@ class Kernel extends HttpKernel
*/
*/
protected
$routeMiddleware
=
[
protected
$routeMiddleware
=
[
'auth'
=>
\App\Http\Middleware\Authenticate
::
class
,
'auth'
=>
\App\Http\Middleware\Authenticate
::
class
,
'auth.basic'
=>
\Illuminate\Auth\Middleware\AuthenticateWithBasicAuth
::
class
,
//
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'bindings'
=>
\Illuminate\Routing\Middleware\SubstituteBindings
::
class
,
'bindings'
=>
\Illuminate\Routing\Middleware\SubstituteBindings
::
class
,
'cache.headers'
=>
\Illuminate\Http\Middleware\SetCacheHeaders
::
class
,
'cache.headers'
=>
\Illuminate\Http\Middleware\SetCacheHeaders
::
class
,
'can'
=>
\Illuminate\Auth\Middleware\Authorize
::
class
,
'can'
=>
\Illuminate\Auth\Middleware\Authorize
::
class
,
'guest'
=>
\App\Http\Middleware\RedirectIfAuthenticated
::
class
,
'guest'
=>
\App\Http\Middleware\RedirectIfAuthenticated
::
class
,
'password.confirm'
=>
\Illuminate\Auth\Middleware\RequirePassword
::
class
,
//
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
'signed'
=>
\Illuminate\Routing\Middleware\ValidateSignature
::
class
,
'signed'
=>
\Illuminate\Routing\Middleware\ValidateSignature
::
class
,
'throttle'
=>
\Illuminate\Routing\Middleware\ThrottleRequests
::
class
,
'throttle'
=>
\Illuminate\Routing\Middleware\ThrottleRequests
::
class
,
'verified'
=>
\Illuminate\Auth\Middleware\EnsureEmailIsVerified
::
class
,
'verified'
=>
\Illuminate\Auth\Middleware\EnsureEmailIsVerified
::
class
,
...
...
src/app/Models/AldGift.php
0 → 100644
View file @
6f911298
<?php
namespace
App\Models
;
use
Illuminate\Database\Eloquent\Model
;
class
AldGift
extends
Model
{
protected
$primaryKey
=
"uid"
;
protected
$table
=
"ald_gift"
;
public
$timestamps
=
FALSE
;
}
src/app/Services/UtilService.php
View file @
6f911298
...
@@ -66,50 +66,6 @@ class UtilService
...
@@ -66,50 +66,6 @@ class UtilService
return
$prefix
.
"****"
.
$posfix
;
return
$prefix
.
"****"
.
$posfix
;
}
}
public
static
function
getKefuURL
(
$openid
=
0
)
{
$uid
=
$openid
;
$time
=
time
();
$level
=
0
;
$user_id
=
0
;
if
(
$uid
)
{
$signInfo
=
md5
(
'platform=mg&openid='
.
$uid
.
'&time='
.
$time
.
'&GV49_4=HXjJpd|b6'
);
$url
=
'http://39.108.116.227:59365/query_account?platform=mg&openid='
.
$uid
.
'&time='
.
$time
.
'&sign='
.
$signInfo
;
$result
=
self
::
get_http_request
(
$url
);
Log
::
info
(
"查询MG账号信息: "
.
$result
,
[
'url'
=>
$url
]);
$result
=
json_decode
(
$result
,
true
);
if
(
isset
(
$result
[
'result'
])
&&
$result
[
'result'
]
==
0
)
{
$user_id
=
$result
[
'accid'
];
$level
=
1
;
}
}
if
(
empty
(
$user_id
))
{
$user_id
=
'visitor_'
.
base_convert
(
uniqid
(),
16
,
10
)
.
mt_rand
(
10000
,
99999
);
}
$data
=
array
(
'app_id'
=>
138
,
'jobs_id'
=>
2
,
'level'
=>
$level
,
'plat_id'
=>
3
,
'plat_name'
=>
'橙橙用户中心'
,
'server_id'
=>
1
,
'server_name'
=>
'用户中心'
,
'channel_id'
=>-
1
,
'channel_name'
=>
'd'
,
'timestamp'
=>
time
(),
'user_id'
=>
$user_id
,
'user_name'
=>
'游客'
,
'ouid'
=>
$user_id
);
$customer_key
=
'WUYO49KqmE$fia*L3g*W1Sdt8hmo5ygQV'
;
$sign_info
=
self
::
getSign
(
$data
,
$customer_key
);
return
"https://kefu.srccwl.com/?"
.
$sign_info
[
'str'
]
.
'&sign='
.
$sign_info
[
'sign'
];
}
public
static
function
getSign
(
$data
,
$key
)
public
static
function
getSign
(
$data
,
$key
)
{
{
ksort
(
$data
);
ksort
(
$data
);
...
@@ -201,7 +157,7 @@ class UtilService
...
@@ -201,7 +157,7 @@ class UtilService
}
}
}
}
public
static
function
postCurlJson
(
$url
,
$data
,
$headers
=
[],
$timeout
=
30
){
public
static
function
postCurlJson
(
$url
,
$data
,
$headers
=
[],
$timeout
=
5
){
try
{
try
{
$requestHeader
[]
=
"API-RemoteIP: "
;
$requestHeader
[]
=
"API-RemoteIP: "
;
$requestHeader
[]
=
"Content-type: application/json"
;
$requestHeader
[]
=
"Content-type: application/json"
;
...
@@ -220,8 +176,8 @@ class UtilService
...
@@ -220,8 +176,8 @@ class UtilService
$result
=
curl_exec
(
$curl
);
$result
=
curl_exec
(
$curl
);
curl_close
(
$curl
);
curl_close
(
$curl
);
return
$result
;
return
$result
;
}
catch
(
e
xception
$e
)
{
}
catch
(
\E
xception
$e
)
{
throw
new
Exception
(
$e
->
getMessage
());
throw
new
\
Exception
(
$e
->
getMessage
());
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment