本文整理匯總了PHP中member::getmember方法的典型用法代碼示例。如果您正苦於以下問題:PHP member::getmember方法的具體用法?PHP member::getmember怎麽用?PHP member::getmember使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類member
的用法示例。
在下文中一共展示了member::getmember方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: member
function back_point($data, $memo = '')
{
if (!is_array($data)) {
$data = $this->conn->GetRow("select * from " . $this->table . " where id='" . $data . "'");
}
if ($data && $data["member_id"] != '' && $data["addpoint_status"] == '1') {
$member = new member($this->conn, PREFIX . "member");
$member->getmember(" where id='" . $data["member_id"] . "'", 'login');
$ind['shopping_car_id'] = $data["id"];
$member->point_work($data["addpoint"] * -1, $memo != '' ? $memo : '訂單' . $order_no . '移除紅利', $ind);
$this->conn->Execute("UPDATE " . $this->table . " SET addpoint_status=0 where id='" . $data["id"] . "'");
}
}
示例2: explode
$loadata = $conn->GetRow("select * from " . $_POST["table"] . " where " . $where_sql);
$loadata[$_POST["row"]] = explode('|__|', $loadata[$_POST["row"]]);
$loadata[$_POST["row"]][$temp_str_add[1] * 1] = quotes($_POST["editabledata"]);
$indata[$_POST["row"]] = implode('|__|', $loadata[$_POST["row"]]);
} else {
$indata[$_POST["row"]] = quotes($_POST["editabledata"]);
}
if ($_SESSION["admin_info"]["account"] && $conn->AutoExecute($_POST["table"], $indata, "UPDATE", $where_sql)) {
echo '更新成功';
} else {
echo '更新失敗';
}
}
//--訂單紅利操作
if ($_GET["back_point"]) {
$member = new member($conn, PREFIX . "member");
$check_data = $conn->GetRow("select * from " . PREFIX . "shopping_car where id='" . $_GET["back_point"] . "'");
$member->getmember(" where id='" . $check_data["member_id"] . "'", 'login');
$member->work();
if ($check_data["addpoint_status"] == '1') {
$member->point_work($check_data['addpoint'] * -1, '後台訂單調整回收紅利');
$conn->Execute("UPDATE " . PREFIX . "shopping_car SET addpoint_status=0 where id='" . $_GET["back_point"] . "'");
echo '已回收紅利點數';
exit;
} else {
$member->point_work($check_data['addpoint'], '後台訂單調整發放紅利');
$conn->Execute("UPDATE " . PREFIX . "shopping_car SET addpoint_status=1 where id='" . $_GET["back_point"] . "'");
echo '已發放紅利點數';
exit;
}
}