|
@@ -24,7 +24,7 @@ use app\common\library\Sms as Smslib;
|
|
|
*/
|
|
|
class Money extends Common
|
|
|
{
|
|
|
- protected $noNeedLogin = ['getRecharConfig', 'getRateMoney', 'getExchangeConfig', 'getExchsoundConfig', 'rebateDuty', 'kjRecharge', 'changeWithDrawStatus'];
|
|
|
+ protected $noNeedLogin = ['getRecharConfig', 'getRateMoney', 'getExchangeConfig', 'getExchsoundConfig', 'rebateDuty', 'kjRecharge', 'changeWithDrawStatus','moneyConfig'];
|
|
|
protected $noNeedRight = '*';
|
|
|
|
|
|
public function _initialize()
|
|
@@ -1843,4 +1843,26 @@ class Money extends Common
|
|
|
$result =$alipay->AliPayWithdraw($data);
|
|
|
return $result;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取余额相关比例
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function moneyConfig()
|
|
|
+ {
|
|
|
+ try {
|
|
|
+ $field = 'name,title,value';
|
|
|
+ $where['name'] = ['in', ['money_to_jewel','withdrawRate']];
|
|
|
+ $config = Db::name('config')->field($field)->where($where)->select();
|
|
|
+ $result = [];
|
|
|
+ if (!empty($config)) {
|
|
|
+ foreach ($config as $key => $value) {
|
|
|
+ $result[$value['name']] = $value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $this->success('获取成功',$result);
|
|
|
+ } catch (Exception $e) {
|
|
|
+ $this->error($e->getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|