|
@@ -17,8 +17,11 @@ class Takecash extends Api
|
|
|
$config = Db::name('take_cash_config')->order('weigh asc,id asc')->select();
|
|
|
|
|
|
$plat_bilv = config('site.withdrawal_plat_bili');
|
|
|
+ $rmb_to_jewel = config('rmb_to_jewel');
|
|
|
foreach($config as $key => &$val){
|
|
|
- $val['get_money'] = bcdiv(bcmul($val['money'],(100-$plat_bilv),2),100,2);
|
|
|
+ $get_money = bcdiv(bcmul($val['money'],(100-$plat_bilv),2),100,2);
|
|
|
+
|
|
|
+ $val['get_money'] = bcdiv($get_money,$rmb_to_jewel,2);
|
|
|
}
|
|
|
|
|
|
$data = [
|
|
@@ -120,6 +123,9 @@ class Takecash extends Api
|
|
|
$plat_bilv = config('site.withdrawal_plat_bili');
|
|
|
$get_money = bcdiv(bcmul($money,(100-$plat_bilv),2),100,2);
|
|
|
|
|
|
+ $rmb_to_jewel = config('rmb_to_jewel');
|
|
|
+ $get_money = bcdiv($get_money,$rmb_to_jewel,2);
|
|
|
+
|
|
|
$data = [
|
|
|
'user_id' => $this->auth->id,
|
|
|
'money' => $money,
|