wallet
This commit is contained in:
@@ -1088,7 +1088,7 @@ long WrenchBoardMobileSendUserWallet(CVars in, CVars &out) {
|
||||
const PGresult *res;
|
||||
res = pgsql_query("SELECT w.amount,c.*,w.amount AS current_balance,c.country,w.transfer_limit,w.uid AS wallet_uid "
|
||||
"FROM members_wallet w LEFT JOIN currency c ON c.code=w.currency "
|
||||
"WHERE w.member_id = %lu ORDER BY c.lorder DESC", in["member_id"].Long());
|
||||
"WHERE w.member_id = %lu AND w.status = 1 ORDER BY c.lorder DESC", in["member_id"].Long());
|
||||
|
||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||
out["total_record"] = pgsql_num_rows(res);
|
||||
|
||||
@@ -185,11 +185,12 @@ class WrenchPlayGround extends BaseController
|
||||
|
||||
private function apiFeaturedData() {
|
||||
$data=[];
|
||||
$total = 6;
|
||||
$total = 3;
|
||||
for ($i = 0; $i < $total; $i++) {
|
||||
$key = sprintf("%05d", $i);
|
||||
$data["item"][] = array(
|
||||
"banner" => "I have no idea",
|
||||
"media" => "https://dev-media.wrenchboard.com/videos/c35c32bc-9ce4-4ca5-9afc-1ecddfd649f5",
|
||||
"title" => "This Featured dummy text ".$key,
|
||||
"description" => "Random gibberish text to use in web pages, site templates and in typography demos. Get rid of Lorem Ipsum forever. A tool for web designers who want to save time. ".$key,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user