public function alipayjs_success_notify($detail_arr, $status = true)
 {
     global $_lang, $_K;
     $ids = implode(",", array_keys($detail_arr));
     $info = kekezu::get_table_data("withdraw_id,uid,username,withdraw_status,withdraw_cash,pay_username,pay_account", "witkey_withdraw", " withdraw_id in ({$ids})", "", "", "", "withdraw_id");
     foreach ($detail_arr as $k => $v) {
         if ($info[$k]['withdraw_status'] == 1) {
             switch ($v['status']) {
                 case "S":
                     $fee = $info[$k]['withdraw_cash'] - keke_finance_class::get_to_cash($info[$k]['withdraw_cash']);
                     $res = db_factory::execute(sprintf(" update %switkey_withdraw set withdraw_status='2',fee=%.2f where withdraw_id ='%d'", TABLEPRE, $fee, $k));
                     $arr = array($_lang['sitename'] => $_K['sitename'], $_lang['tx_cash'] => $v['fee']);
                     keke_msg_class::notify_user($info[$k]['uid'], $info[$k]['username'], 'draw_success', $_lang['tx_success'], $arr, 2);
                     break;
                 case "F":
                     $res = db_factory::execute(sprintf(" update %switkey_withdraw set withdraw_status='3' where withdraw_id ='%d'", TABLEPRE, $k));
                     $v_arr = array('网站名称' => $_K['sitename'], '提现方式' => $pay_way[$withdraw_info[0]['pay_type']], '失败原因' => '未注明原因', '帐户' => $withdraw_info[0]['pay_account'], '提现金额' => $v['withdraw_cash']);
                     keke_msg_class::notify_user($info[$k]['uid'], $info[$k]['username'], 'withdraw_fail', $_lang['tx_fail'], $v_arr, 2);
                     break;
             }
         }
     }
 }
 public static function alipayjs_format_moneys($cash)
 {
     $website_cash = keke_finance_class::get_to_cash($cash);
     $alipay_per_charge = 0.5;
     $alipay_per_low = 1;
     $alipay_per_high = 25;
     if ($website_cash <= 1) {
         return $website_cash;
     }
     if ($website_cash <= 200) {
         $real_website_cash = $website_cash;
     } elseif ($website_cash > 200 && $website_cash <= 5000) {
         $real_website_cash = $website_cash;
     } elseif ($website_cash > 5000) {
         $real_website_cash = $website_cash;
     }
     return $real_website_cash;
 }
             keke_finance_class::init_mem('withdraw_fail', $data);
             keke_finance_class::cash_in($uid, $withdraw_cash, 0, 'withdraw_fail');
             $v_arr = array('网站名称' => $_K['sitename'], '提现方式' => $pay_way[$withdraw_info['pay_type']], '帐户' => $withdraw_info['pay_account'], '失败原因' => $content ? kekezu::escape($content) : '未注明原因', '提现金额' => $withdraw_cash);
             keke_msg_class::notify_user($uid, $username, 'withdraw_fail', $_lang['fail_and_check_you_account'], $v_arr);
         }
     }
     $withdraw_obj->setWithdraw_status(3);
     $res = $withdraw_obj->edit_keke_witkey_withdraw();
     kekezu::admin_system_log($_lang['delete_audit_withdraw'] . $ids);
     break;
 case $_lang['mulit_review']:
     $withdraw_obj->setWhere(' withdraw_id in (' . $ids . ') ');
     $withdraw_arr = $withdraw_obj->query_keke_witkey_withdraw();
     foreach ($withdraw_arr as $k => $v) {
         if ($v[withdraw_status] == 1) {
             $fee = $v['withdraw_cash'] - keke_finance_class::get_to_cash($v['withdraw_cash']);
             db_factory::execute(sprintf(' update %switkey_withdraw set fee=%.2f where withdraw_id=%d', TABLEPRE, $fee, $v['withdraw_id']));
             $v_arr = array('网站名称' => $_K['sitename'], '提现方式' => $pay_way[$v['pay_type']], '帐户' => $v['pay_account'], '提现金额' => $v['withdraw_cash']);
             keke_msg_class::notify_user($v['uid'], $v['username'], 'draw_success', $_lang['withdraw_success'], $v_arr);
             $feed_arr = array("feed_username" => array("content" => $v['username'], "url" => "index.php?do=seller&id=" . $space_info['uid']), "action" => array("content" => $_lang['withdraw'], "url" => ""), "event" => array("content" => $_lang['withdraw_le'] . $v['withdraw_cash'] . $_lang['yuan'], "url" => ""));
             kekezu::save_feed($feed_arr, $user_space_info['uid'], $user_space_info['username'], 'withdraw');
             $withdraw_obj = new Keke_witkey_withdraw_class();
             $withdraw_obj->setWhere(' withdraw_id in (' . $ids . ') ');
             $withdraw_obj->setWithdraw_status(2);
             $withdraw_obj->setProcess_uid($admin_info['uid']);
             $withdraw_obj->setProcess_username($admin_info['username']);
             $withdraw_obj->setProcess_time(time());
             $withdraw_obj->edit_keke_witkey_withdraw();
         }
     }
     kekezu::admin_system_log($_lang['audit_withdraw_apply'] . $ids);