Your Name 2 years ago
parent
commit
c02897eea5
2 changed files with 14 additions and 0 deletions
  1. 7 0
      service/option/database/account.php
  2. 7 0
      service/option/lib/Account.php

+ 7 - 0
service/option/database/account.php

@@ -80,10 +80,17 @@ if ($search_auth == 1) {
         '创建账户' => array('fast', '', 'member'),
     );
     $list_button['list1'] = array('账户列表', '"member&search_option_aid={id}&search_option_dever_auth='.$search_auth.'"');
+   
 } elseif ($search_auth == 3) {
     $list_button['list1'] = array('账户列表', '"member&search_option_aid={id}&search_option_dever_auth='.$search_auth.'"');
 }
 
+if (Dever::load('manage/auth')->checkFunc('menu_279.menu_290','setmessage','发送短信')) {
+        $table = 'template';
+        $res = Dever::load('sms/api')->getTable($table);
+        $list_button['fast'] = array('发送短信','Dever::load("option/lib/account.send_sms",{mid})');
+}
+
 return array
 (
     # 表名

+ 7 - 0
service/option/lib/Account.php

@@ -460,4 +460,11 @@ class Account
         }
         return array('daijiaofu' => $daijiaofu, 'qiquan' => $qiquan, 'yuanshiqiquan' => $yuanshiqiquan);
     }
+    public function send_sms($mid){
+        $member = Dever::db('option/member')->one($mid);
+        $table = 'template';
+            $res = Dever::load('sms/api')->getTable($table);
+            return Dever::url($res.'&search_option_state=1&search_option_type=qiquan_reg_yes,qiquan_reg_no,qiquan_audit,qiquan_hetong_no&search_option_name='.$member['name'].'&search_option_mobile='.$member['mobile'], 'manage');
+            
+    }
 }