|
|
@@ -143,12 +143,12 @@ class UserController
|
|
|
];
|
|
|
$usersdata = Db::table('wa_users')->where('id', $request->user_data['id'])->first();
|
|
|
//银行卡余额 强制 兑换
|
|
|
- if (!empty($usersdata->money_two)) {
|
|
|
+ if (!empty($usersdata->money_two) && $usersdata->money_two>0) {
|
|
|
StreamBusiness::addStream($request->user_data['id'],$usersdata->money_two, streamType40, moldType10, moldTypefild10);
|
|
|
StreamBusiness::delStream($request->user_data['id'], $usersdata->money_two, streamType40, moldType3, moldTypefild3);
|
|
|
}
|
|
|
//USD强制 兑换
|
|
|
- if (!empty($usersdata->money)) {
|
|
|
+ if (!empty($usersdata->money) && $usersdata->money>0) {
|
|
|
StreamBusiness::addStream($request->user_data['id'], $usersdata->money, streamType40, moldType10, moldTypefild10);
|
|
|
StreamBusiness::delStream($request->user_data['id'], $usersdata->money, streamType40, moldType1, moldTypefild1);
|
|
|
}
|