Browse Source

不要充值钻石

lizhen_gitee 3 months ago
parent
commit
fe842c8dd7

+ 0 - 33
application/admin/controller/Userwallet.php

@@ -167,39 +167,6 @@ class Userwallet extends Backend
         return $this->view->fetch();
     }
 
-    /**
-     * 充值钻石
-     */
-    public function updatejewel(){
-        $id = input('id');
-        $info = Db::name('user_wallet')
-            ->where('id',$id)
-            ->find();
-
-        if ($this->request->isPost()) {
-
-            $user_id = input_post('user_id');
-            $jewel = input_post('jewel', 0, 'intval');
-
-            $user_info = Db::name('user')->find($user_id);
-            if (!$user_info) {
-                $this->error('用户不存在');
-            }
 
-            Db::startTrans();
-
-            $rs = model('wallet')->lockChangeAccountRemain($user_id,0,'jewel',$jewel,3, '系统调节','',0, 0);
-            if($rs['status'] === false){
-                Db::rollback();
-                $this->error($rs['msg']);
-            }
-
-            Db::commit();
-            $this->success('充值完成');
-        }
-
-        $this->assign('row',$info);
-        return $this->view->fetch();
-    }
 
 }

+ 0 - 1
application/admin/view/userwallet/index.html

@@ -27,7 +27,6 @@
                            data-operate-del="{:$auth->check('userwallet/del')}" 
                            data-operate-updategold="{:$auth->check('userwallet/updategold')}"
                            data-operate-updatemoney="{:$auth->check('userwallet/updatemoney')}"
-                           data-operate-updatejewel="{:$auth->check('userwallet/updatejewel')}"
                            width="100%">
                     </table>
                 </div>

+ 1 - 12
public/assets/js/backend/userwallet.js

@@ -59,16 +59,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                                     target:'_self',
 
                                 },
-                                {
-                                    name:'updatejewel',
-                                    text:'充值钻石',
-                                    title:'充值钻石',
-                                    icon:'fa fa-exclamation-circle',
-                                    classname:'btn btn-xs btn-info btn-dialog',
-                                    url:'userwallet/updatejewel/id/{ids}?dialog=1',
-                                    target:'_self',
 
-                                },
                             ],
                             events: Table.api.events.operate, formatter: Table.api.formatter.operate}
                     ]
@@ -90,9 +81,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
         updatemoney: function () {
             Controller.api.bindevent();
         },
-        updatejewel: function () {
-            Controller.api.bindevent();
-        },
+
         api: {
             bindevent: function () {
                 Form.api.bindevent($("form[role=form]"));