Exemplo n.º 1
0
 //  $arr=$dsql->GetOne($sql);
 //logResult('spotid:'.$arr['spotid']);
 //  if(!$arr)exit();
 if (substr($ordersn, 0, 2) == 'dz') {
     $updatesql = "update sline_dzorder set status=2 where ordersn='{$ordersn}'";
     $ordertype = 'sys';
 } else {
     $updatesql = "update #@__member_order set ispay=1,status=2 where ordersn='{$ordersn}'";
     //付款标志置为1,交易成功
     $ordertype = 'sys';
 }
 $sql = "select * from #@__member_order where ordersn='{$ordersn}'";
 $arr = $dsql->GetOne($sql);
 $dsql->ExecuteNoneQuery($updatesql);
 if ($ordertype != 'dz') {
     $msgInfo = Helper_Archive::getDefineMsgInfo($arr['typeid'], 3);
     $memberInfo = Helper_Archive::getMemberInfo($arr['memberid']);
     $nickname = !empty($memberInfo['nickname']) ? $memberInfo['nickname'] : $memberInfo['mobile'];
     if (isset($msgInfo['isopen'])) {
         $content = $msgInfo['msg'];
         $totalprice = $arr['price'] * $arr['dingnum'];
         $content = str_replace('{#MEMBERNAME#}', $memberinfo['nickname'], $content);
         $content = str_replace('{#PRODUCTNAME#}', $arr['productname'], $content);
         $content = str_replace('{#PRICE#}', $arr['PRICE'], $content);
         $content = str_replace('{#NUMBER#}', $arr['dingnum'], $content);
         $content = str_replace('{#TOTALPRICE#}', $totalPrice, $content);
         Helper_Archive::sendMsg($memberInfo['mobile'], $nickname, $content);
         //发送短信.
     }
     //支付成功后添加预订送积分
     if (!empty($arr['jifenbook'])) {
Exemplo n.º 2
0
     $uid = uc_user_register($mobile, $password, $email);
     if ($uid <= 0) {
     } else {
         $ucsynlogin = uc_user_synlogin($uid);
     }
 }
 if ($dsql->ExecuteNoneQuery($sql)) {
     $User = new Member(7 * 3600);
     $User->login($mobile, $password);
     //增加积分记录
     if (!empty($jifen)) {
         Helper_Archive::addJifenLog($User->uid, "注册赠送积分{$jifen}", $jifen, 2);
     }
     $msg = '';
     $fromurl = empty($fromurl) ? $GLOBAL['cfg_basehost'] . '/member/' : $fromurl;
     $msgInfo = Helper_Archive::getDefineMsgInfo(0);
     if ($msgInfo['isopen'] == 1) {
         // $nickname = !empty($nickname) ? $nickname : $mobile;
         $content = $msgInfo['msg'];
         $content = str_replace('{#LOGINNAME#}', $mobile, $content);
         $content = str_replace('{#PASSWORD#}', $password, $content);
         $content = str_replace('{#WEBNAME#}', $GLOBALS['cfg_webname'], $content);
         $content = str_replace('{#PHONE#}', $GLOBALS['cfg_phone'], $content);
         Helper_Archive::sendMsg($mobile, $mobile, $content);
         //注册短信
     }
     if (strpos($fromurl, 'findpass') !== false || strpos($fromurl, 'reg') !== false || strpos($fromurl, 'login') !== false) {
         if (strpos($fromurl, 'login') !== false && $_SESSION['login_referer']) {
             $fromurl = $_SESSION['login_referer'];
             $_SESSION['login_referer'] = '';
         } else {