Beispiel #1
0
}
/*-----------------------------
//用户新密码保存

-----------------*/
if ($dopost == 'savenewpass') {
    Helper_Archive::loadModule('common');
    $_model = new CommonModule('#@__member');
    $oldpwd = md5($oldpwd);
    $newpwd = md5($newpwd1);
    $usermid = $_model->getField('mid', "mid='{$uid}' and pwd='{$oldpwd}'");
    if ($usermid == $uid) {
        $arr = array('pwd' => $newpwd);
        $where = array('mid' => $uid);
        $url = $GLOBALS['cfg_basehost'] . '/member/index.php';
        if ($_model->update($arr, $where)) {
            ShowMsg('密码修改成功!', $url);
            exit;
        }
    } else {
        ShowMsg('旧密码输入错误,请检查', '-1');
        exit;
    }
}
/*-----------------------------
//我的咨询管理
------------------------------*/
if ($dopost == 'myquestion') {
    $pagename = $dopost;
    //当前页面,用于左侧导航选中
    $pv->Fields['pagename'] = $pagename;
Beispiel #2
0
    $arr['orderid'] = $orderid;
    $arr['score1'] = $score1;
    $arr['score2'] = $score2;
    $arr['score3'] = $score3;
    $arr['score4'] = $score4;
    $arr['articleid'] = $productid;
    $arr['level'] = getPinLunLevel($scores);
    $arr['typeid'] = $typeid;
    $arr['addtime'] = time();
    //$arr['kindlist'] = Helper_Archive::getProductKindList($arr['articleid'],$arr['typeid']);
    $status = 0;
    if ($_model->add($arr)) {
        $order = new CommonModule('#@__member_order');
        $ar = array('ispinlun' => 1);
        $w = array('id' => $orderid);
        $order->update($ar, $w);
        //点评积分
        $jifencomment = $order->getField('jifencomment', "id={$orderid}");
        if (!empty($jifencomment)) {
            $sql = "update sline_member set jifen=jifen+{$jifencomment} where mid='{$uid}'";
            $dsql->ExecuteNoneQuery($sql);
        }
        $status = 1;
    }
    echo json_encode(array('status' => $status));
    exit;
}
if ($dopost == 'delorder') {
    refundStorage($orderid, 'plus');
    $sql = "delete from #@__member_order where memberid='{$uid}' and id='{$orderid}' and status!=2";
    $result = $dsql->ExecuteNoneQuery($sql);
Beispiel #3
0
<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/5/13 0013
 * Time: 14:31
 */
require_once dirname(__FILE__) . "/../include/common.inc.php";
$xmlStr = $_POST['XmlStr'];
$xmlObj = new SimpleXMLElement($xmlStr);
$isSuccess = (string) $xmlObj->IsSuccess;
if ($isSuccess == 'false') {
    exit('fail');
}
$transrNo = (string) $xmlObj->TransrNo;
$row = $dsql->GetOne("select * from #@__insurance_booking where ordersn='{$transrNo}'");
if (empty($row)) {
    exit('not exist');
}
var_dump($row);
Helper_Archive::loadModule('common');
$curtime = time();
$model = new CommonModule('#@__insurance_booking');
$arr['status'] = 2;
$arr['insureno'] = (string) $xmlObj->InsureNo;
$arr['policyno'] = (string) $xmlObj->PolicyNo;
$arr['policyfileid'] = (string) $xmlObj->PolicyFileId;
$arr['payedtime'] = $curtime;
$result = $model->update($arr, array('id' => $row['id']));