Commit 7decbc26 by 杨树贤

修复微信默认为1的bug

parent 1ef6e305
...@@ -4,6 +4,7 @@ APP_KEY=0uUBt7t4fFIttyqkyLxDhLC7gn9361Yt ...@@ -4,6 +4,7 @@ APP_KEY=0uUBt7t4fFIttyqkyLxDhLC7gn9361Yt
APP_TIMEZONE=PRC APP_TIMEZONE=PRC
DB_CONNECTION=mysql DB_CONNECTION=mysql
#DB_HOST=192.168.2.232
DB_HOST_R=192.168.2.232 DB_HOST_R=192.168.2.232
DB_HOST_W=192.168.2.232 DB_HOST_W=192.168.2.232
DB_PORT=3306 DB_PORT=3306
......
...@@ -200,7 +200,7 @@ class UserExchangesController extends Controller ...@@ -200,7 +200,7 @@ class UserExchangesController extends Controller
//金额小于20元时,推送一个异步任务(用来提现或者充值),延时10秒,防止主从同步不及时 //金额小于20元时,推送一个异步任务(用来提现或者充值),延时10秒,防止主从同步不及时
//同时还要是type=1(话费充值)的时候,才会去进行兑现,因为目前微信还不能够直接走兑现任务 //同时还要是type=1(话费充值)的时候,才会去进行兑现,因为目前微信还不能够直接走兑现任务
if ($data['amount'] < 20 || $data['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);
......
26901 2170
\ No newline at end of file \ 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