Commit cf84c92e by 杨树贤

Merge branch 'ysx-ic助手服务开发-20190824'

parents 226640ae d8f82dbe
...@@ -199,7 +199,8 @@ class UserExchangesController extends Controller ...@@ -199,7 +199,8 @@ class UserExchangesController extends Controller
$Redis->hset('ic_user', $UserInfo['user_id'], json_encode($UserInfo)); $Redis->hset('ic_user', $UserInfo['user_id'], json_encode($UserInfo));
//金额小于20元时,推送一个异步任务(用来提现或者充值),延时10秒,防止主从同步不及时 //金额小于20元时,推送一个异步任务(用来提现或者充值),延时10秒,防止主从同步不及时
if ($data['amount'] < 20) { //同时还要是type=1(话费充值)的时候,才会去进行兑现,因为目前微信还不能够直接走兑现任务
if ($data['amount'] < 20 || $data['type'] == 1) {
$Task = new ExchangesTask($data, $ic_exchange_settings); $Task = new ExchangesTask($data, $ic_exchange_settings);
$Task->delay(10); $Task->delay(10);
$result = Task::deliver($Task); $result = Task::deliver($Task);
......
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