Beispiel #1
0
     //结束时间后一个月,>0 则可以操作,< 0无法操作
     $memberdb['ifpay'] != 0 && Showmsg('act_close_payment_error');
     //只有未支付状态下可以操作
     $winduid != $memberdb['authorid'] && Showmsg('act_close_payment_noright');
     //只有发起人可以操作
     $memberdb['isrefund'] && Showmsg('act_close_payment_noright');
     //退款的无法关闭
     require_once PrintEot('ajax');
     ajax_footer();
 } elseif ($_POST['step'] == 2) {
     PostCheck();
     if ($paymethod == 1) {
         //如果是支付宝付款,则需要支付宝接口通信
         require_once R_P . 'lib/activity/alipay_push.php';
         $alipayPush = new AlipayPush();
         $is_success = $alipayPush->close_aa_detail_payment($tid, $actuid);
         echo $is_success;
         ajax_footer();
     } else {
         $db->update("UPDATE pw_activitymembers SET ifpay=3 WHERE actuid=" . S::sqlEscape($actuid));
         //费用关闭
         $defaultValueTableName = getActivityValueTableNameByActmid();
         $db->update("UPDATE {$defaultValueTableName} SET updatetime=" . S::sqlEscape($timestamp) . " WHERE tid=" . S::sqlEscape($tid));
         //报名列表动态时间
         //现金支付
         /*短消息通知 删除报名者 发起人*/
         M::sendNotice(array($memberdb['author']), array('title' => getLangInfo('writemsg', 'activity_signup_close_title', array('username' => $memberdb['username'])), 'content' => getLangInfo('writemsg', 'activity_signup_close_content', array('username' => $memberdb['username'], 'uid' => $memberdb['uid'], 'tid' => $memberdb['tid'], 'subject' => $memberdb['subject']))), 'notice_active', 'notice_active');
         /*短消息通知 删除报名者 参与人*/
         M::sendNotice(array($memberdb['username']), array('title' => getLangInfo('writemsg', 'activity_signuper_close_title', array('username' => $memberdb['author'])), 'content' => getLangInfo('writemsg', 'activity_signuper_close_content', array('username' => $memberdb['author'], 'uid' => $memberdb['authorid'], 'tid' => $memberdb['tid'], 'subject' => $memberdb['subject']))), 'notice_active', 'notice_active');
         echo "success";
         ajax_footer();