Commit d8f82dbe by 杨树贤

ä¿微信转账不能直接走兑现任务,因为微信还没有申请成功红包转账

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