94 lines
3.6 KiB
PHP
94 lines
3.6 KiB
PHP
<?php
|
|
//echo "[".date("Y-m-d H:i:s")."] Daily Report job is starting.\n";
|
|
include '../backend.php';
|
|
define('SAVVYEXT_BKO_CARDASSIGNED', 100027);
|
|
|
|
function Fextension_call($in, &$out) {
|
|
// logToFl("Merchant_Name count->" . $in["merchant_name"]);
|
|
global $savvyext;
|
|
$out = $savvyext->savvyext_api($in);
|
|
$ret = $out["retval"];
|
|
return $ret;
|
|
}
|
|
|
|
$inX["mode"] = '100';
|
|
$inX["member_id"] = '1';
|
|
$inX["action"] = SAVVYEXT_BKO_CARDASSIGNED;
|
|
$inX["card_type"] = '22000';
|
|
$inX["card_count"] = '100';
|
|
|
|
|
|
|
|
$inX["pid"] = 100;
|
|
|
|
$outX=array();
|
|
|
|
|
|
$extension_call = true;
|
|
|
|
if ($extension_call == true ) {
|
|
// logToFl("merchant_name count->" . $res->merchant_name);
|
|
Fextension_call($inX, $out);
|
|
}
|
|
print_r( $inX );
|
|
echo "<br> -------------------------------------------------------------------- <br>";
|
|
//print_r( $out );
|
|
|
|
|
|
$total = $out["total_record"];
|
|
$res = array(
|
|
"session_valid" => $out["session_valid"],
|
|
"status" => $out["status"],
|
|
"total_record" => ($total),
|
|
"internal_return" => $out["internal_return"],
|
|
"result_list" => array(),
|
|
);
|
|
for ($i = 0; $i < $total; $i++) {
|
|
$key = sprintf("%05d", $i);
|
|
$res["result_list"][] = array(
|
|
"assign_id" => $out["assign_id_${key}"],
|
|
"card_id" => $out["card_id_${key}"],
|
|
"can_save" => $out["can_save_${key}"],
|
|
"name" => $out["name_${key}"],
|
|
"short_title" => $out["short_title_${key}"],
|
|
"title" => $out["title_${key}"],
|
|
"description" => $out["description_${key}"],
|
|
"background_picture" => $out["background_picture_${key}"],
|
|
"button1" => $out["button1_${key}"],
|
|
"button1_text" => $out["button1_text_${key}"],
|
|
"short_title" => $out["short_title_${key}"],
|
|
"button1_action" => $out["button1_action_${key}"],
|
|
"expires" => $out["expires_${key}"],
|
|
"template" => $out["template_${key}"],
|
|
"card_canexpire" => $out["card_canexpire_${key}"],
|
|
"card_action_type" => $out["card_action_type_${key}"],
|
|
"card_action_data" => $out["card_action_data_${key}"],
|
|
"titleshow" => $out["titleshow_${key}"],
|
|
"multiple_answer" => $out["multiple_answer_${key}"],
|
|
"use_short_title" => $out["use_short_title_${key}"],
|
|
"target_key" => $out["target_key_${key}"],
|
|
"target_text" => $out["target_text_${key}"],
|
|
"subscribe" => $out["subscribe_${key}"],
|
|
"long_description" => $out["long_description_${key}"],
|
|
"card_behavior" => $out["card_behavior_${key}"],
|
|
"card_type" => $out["card_type_${key}"],
|
|
"card_time" => $out["card_time_${key}"],
|
|
"card_country" => $out["card_country_${key}"],
|
|
"card_location" => $out["card_location_${key}"],
|
|
"latitude" => $out["latitude_${key}"],
|
|
"longitude" => $out["longitude_${key}"],
|
|
"card_order" => $out["card_order_${key}"],
|
|
"background_color" => $out["background_color_${key}"],
|
|
"blog_id" => $out["blog_id_${key}"]
|
|
);
|
|
} // "request_id" => 324,
|
|
|
|
|
|
print_r( $res["result_list"] );
|
|
|
|
|
|
|
|
|
|
|
|
?>
|