Browse Source

福利对换配置

afa 6 months ago
parent
commit
bfb94685a9
2 changed files with 14 additions and 0 deletions
  1. 5 0
      application/api/controller/Ledger.php
  2. 9 0
      application/config.php

+ 5 - 0
application/api/controller/Ledger.php

@@ -194,6 +194,11 @@ class Ledger extends Api
         $this->success('ok');
     }
 
+    //福利兑换配置
+    public function getWelfareRedeConfig(){
+
+        $this->success('ok', config('welfare_rede'));
+    }
 
 
     /**

+ 9 - 0
application/config.php

@@ -359,4 +359,13 @@ return [
             2.成交顺序以发起求购成功的时间,顺序成交。<br/>
             3.求购期间成交,无法撤销。',   //求购说明
     ],
+    //福利对换配置
+    'welfare_rede' => [
+        'product_image' => 'https://dapp-static.oss-cn-shenzhen.aliyuncs.com/rwacha/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250419115749.jpg', //产品图片
+        'operate_introd'=> '操作介绍',
+        'operate_desc'  => '操作说明',
+        'transfer_address'  => '69c4a8986df40e7ddff7c1c2399e9d4f', //转入地址
+        'currency'  => [1=>'S1', 2=> 'RAC'], //币种
+        'currency_price'  => ['S1'=>20, 'RAC'=> 30, 'USDT'=> 40], //币种价格
+    ]
 ];