public function readcouponinfo()
 {
     $db = new DB_test();
     $arr_header = $this->arr_header;
     $arr_body = $this->arr_body;
     $arr_channelinfo = $this->arr_channelinfo;
     $authorid = $arr_channelinfo['authorid'];
     $query = "select fd_coupon_id as couponid ,fd_coupon_money as couponmoney,fd_coupon_limitnum as couponlimitnum from tb_coupon where fd_coupon_active = '1'\n\t\t\t          order by fd_coupon_no";
     $db->query($query);
     $arr_msg = auto_charset($db->getData('', 'msgbody'), 'gbk', 'utf-8');
     $query = "select fd_author_shopid from tb_author where fd_author_id = '{$authorid}'";
     $db->query($query);
     if ($db->nf()) {
         $db->next_record();
         $shopid = $db->f('fd_author_shopid');
     }
     $arr_shopinfo = getauthorshop($shopid);
     $shopname = $arr_shopinfo['shopname'];
     if ($shopname) {
         $isshop = 1;
         $arr_message = array("result" => "success", "message" => "读取抵用券信息成功!");
         $retcode = "0";
         //反馈状态 0 成功 200 自定义错误
     } else {
         $ishop = 0;
         $arr_message = array("result" => "failure", "message" => "还未开通商家,不允许购买抵用券!");
         $retcode = "200";
         //反馈状态 0 成功 200 自定义错误
     }
     $arr_msg['msgbody']['result'] = $arr_message['result'];
     $arr_msg['msgbody']['message'] = $arr_message['message'];
     $arr_msg['msgbody']['shopname'] = $shopname;
     $arr_msg['msgbody']['isshop'] = $isshop;
     $returnvalue = array("msgbody" => $arr_msg['msgbody']);
     $returnval = TfbxmlResponse::ResponsetoApp($retcode, $returnvalue);
     return $returnval;
 }
 $name = $db->f(fd_author_username);
 $truename = $db->f(fd_author_truename);
 $mobile = $db->f(fd_author_mobile);
 $zcdate = $db->f(fd_author_regtime);
 $idcard = $db->f(fd_author_idcard);
 $email = $db->f(fd_author_email);
 $state = $db->f(fd_author_state);
 $isstop = $db->f(fd_author_isstop);
 $audtid = $db->f(fd_author_auindustryid);
 $slotpayfsetid = $db->f(fd_author_slotpayfsetid);
 $slotscdmsetid = $db->f(fd_author_slotscdmsetid);
 $bkcardpayfsetid = $db->f(fd_author_bkcardpayfsetid);
 $bkcardscdmsetid = $db->f(fd_author_bkcardscdmsetid);
 $sdcrid = $db->f(fd_author_sdcrid);
 $shopid = $db->f(fd_author_shopid);
 $shopname = getauthorshop($shopid);
 if ($isstop) {
     $checked1 = "checked";
 } else {
     $checked2 = "checked";
 }
 switch ($state) {
     case "0":
         $select0 = "selected";
         break;
     case "9":
         $select1 = "selected";
         break;
     case "-1":
         $select2 = "selected";
         break;
 function makeshow()
 {
     // 将值转为显示值
     //$this->var = explode ( ",", $this->bwfd_value );
     $this->bwfd_show = getauthorshop($this->bwfd_value);
     return $this->bwfd_show;
 }