Commit 58a6eccc by 杨树贤

添加兑换记录统一增加

parent 5c44caf3
......@@ -70,7 +70,7 @@ class UserExchangesController extends Controller
//如果类型是微信转账,则前提是要两个好友助力完成才能成功
//添加兑换记录并且提现
$result = $service->addUserExchangeAndQuota($data);
$result = $service->addUserExchange($data);
//这里直接使用服务返回的错误码,对应的错误码在language.php
if ($result['errcode'] == 0) {
......
......@@ -4,6 +4,9 @@
namespace App\Services;
use Carbon\Carbon;
use Common\Model\RedisModel;
class UserExchangeService
{
public function getUserExchangeList($map = [])
......@@ -17,10 +20,12 @@ class UserExchangeService
public function addUserExchange($map = [])
{
$url = config('website.BaseUrl') . '/rob/exchange/quota';
$result = reportCurl($url, $map, true);
$result = json_decode($result, true);
return $result;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment