Card package template

Array json_data = $ ();
$ json_data [ 'the request_id'] = DATE ( 'YmdHis') the mt_rand (10000,99999);.
$ json_data [' CARD_TYPE '] =' OUT_MEMBER_CARD ';
$ json_data [' biz_no_prefix '] =' PREX ';
$ json_data [' biz_no_suffix_len '] =' 10 ';
$ json_data [' write_off_type '] =' qrcode '; #qrcode: two-dimensional code dqrcode: dynamic two-dimensional code barcode: barcode dbarcode: dynamic barcode text: text
$ json_data [ 'template_style_info'] [ ' card_show_name'] = ' test card';
$ json_data [ 'template_style_info'] [ 'logo_id'] = 'AJ4AC3ndT5cDxiq3B_3gAAACMAAQED'; within the # logo upload ID 1M, format bmp, png, jpeg, jpg, gif; size not less than a square of 500 * 500px; Please use the priority listing LOGO;
$ json_data [ 'template_style_info'] [ 'Color'] = 'RGB (255,48,48)';# Card background color
$ json_data [ 'template_style_info'] [ 'background_id'] = '_e-pXS2hTA6FgKEASuQAAACMAAQED'; # Upload background image ID returned
$ json_data [ 'template_style_info'] [ 'bg_color'] = 'rgb (0,100,0)'; # background color
# $ json_data [ 'template_style_info'] [ 'feature_descriptions'] = array (' end using the membership card, the card 0 10% discount '); # √ description
# $ json_data [' template_style_info '] [' slogan '] =' Benefits of membership enjoy non-stop '; # √ slogans
# $ json_data [' template_style_info '] [' slogan_img_id '] =' 1BPt1AQnGAkntb2PFw3QAAACMAAQED '; # √ slogans Image ID
# $ json_data [' template_style_info '] [' BRAND_NAME '] =' high-end membership '; # √ brand name

$ json_data [ 'template_benefit_info'] = array ( 'equity information # √, 1, will automatically add interests in the field of card pack card details page, to show members the right to Carter, 2, if you add store channels, you can show members in the store page interests card
Array (
'title' => 'consumer discount that is 1', # 'equity titled
' benefit_desc '=> [' consumer discount that is 2 '], #' equity described
'start_date' => '2016-07-18 15 : 17:23 '#' equity start time
'end_date' => '2019-07-18 15:17:23 ', # 'equity end of period
)
);

json_data $ [ 'column_info_list'] = Array (
Array (
'code' => 'BENEFIT_INFO',
'MORE_INFO' => Array (
'title' => 'Benefits of Membership 1', two pages title # √
// 'url' => BASE_DOMAIN, # hyperlink (choose openweb time must complete url parameter content) √
'url' => 'http://www.baidu.com', # hyperlink (choose openweb time must complete url parameter content) √
'params' => '{}', # need to bring back the value of the URL address, JSON format (fill in when OpenWeb) √
# 'descs' => [ 'members birthday to fight tickets'] # selected opennative time must be filled descs content √
),
'title' => 'Member Center' # section title
'operate_type' => 'openWeb' , # 1, openNative: open two pages show more in descs 2, openWeb: open URL 3, staticinfo: static information
// 'value' => '80 ',# Card package details page, to the right of the field to show the value of the card √
),
Array (
'code' => 'BALANCE',
'MORE_INFO' => Array (
'title' => 'Members Only' equity ', two pages # √ title
// 'url' => BASE_DOMAIN, # hyperlink (choose openweb time must complete url parameter content) √
'url' => 'http://www.baidu.com', # hyperlink (choose openweb when necessary fill in the url parameter content) √
'params' => '{}', # need to bring back the value of the URL address, JSON format (fill in when OpenWeb) √
# 'descs' => [ 'members birthday to fight tickets'] # selected opennative time must complete descs content √
),
'title' => 'entering the shop 2', # section title
'operate_type' => 'openWeb' , # 1, openNative: open two pages show more in descs 2, openWeb: open URL 3, staticinfo: static information
// 'value' => '80 ', # card package details page, to the right of the field to show the value of the card √
),
Array (
'code' => 'the POINT',
'MORE_INFO '=> Array (
' title '=>' members Only 'equity 11', two pages title # √
// 'url' => BASE_DOMAIN,# Hyperlink (choose openweb time must complete url parameter content) √
'url' => 'http://www.baidu.com', # hyperlink (choose openweb time must complete url parameter content) √
'params' => '{}', # back to the required value with the URL address, (when the fill openweb) JSON format √
# 'Descs' => [ 'Members Birthday to fight tickets'] # selected opennative time must complete descs content √
),
'title' => 'entering the shop 111' # section title
'operate_type' => 'openWeb' , # 1, openNative: open two pages show more in descs 2, openWeb: open URL 3, staticinfo: static information
// 'value' => '80 ', # card package details page, on the right column to show the card value √
)
);

json_data $ [ 'field_rule_list'] = Array (
Array (
'FIELD_NAME' => 'Balance', # Balance: Amount Point: integer Level: any string OpenDate: card opening date ValidDate: Expiration Date
'rule_name' => 'CONST' , # 1.ASSIGN_FROM_REQUEST: to rule_value as key value represents the value of the field is obtained from the membership card open interface card, membership card open card interface card_info acquire a corresponding parameter
# 2, DATE_IN_FUTURE: generate a future date ( format YYYY-MM-DD), when selecting DATE_IN_FUTURE time, field_name must be OpenDate or ValidDate, the value of (10m or 10d represents 10 months or 10 days respectively)
# 3, CONST: constant, membership card open card interface open card when using a template created when setting values, that is to take rule_value value
'rule_value' => '0' # according to rule_name, take the appropriate value strategy
# 3.CONST: direct access to rule_value card as property values
# 3.DATE_IN_FUTURE: 10m or 10d, respectively for 10 months or 10 days
# 1.ASSIGN_FROM_REQUEST: rule_value value by the open request Reuqest card, and now to corresponding field_name (OpenDate, ValidDate, Level, Poin T, Balance)
),


'rule_name' => 'CONST',
'rule_value' => '0'
),
/*array(
'field_name' => 'Level',
'rule_name' => 'CONST',
'rule_value' => '1'
),
array(
'field_name' => 'OpenDate',
'rule_name' => 'DATE_IN_FUTURE',
'rule_value' => '0d'
),
array(
'field_name' => 'ValidDate',
'rule_name' => 'DATE_IN_FUTURE',
'rule_value' => '12m'
)*/
);
// $json_data['open_card_conf'] = array( # √
// 'open_card_source_type' =>'ISV', #ISV: external systems MER: Direct Merchant open card connector you must be http, https beginning// 'open_card_url' => BASE_DOMAIN,
channels APPID, providing leading card services provider page// 'source_app_id' => '2016101702200000

// # 'conf' => ' ', # √ configuration, a reserved field, being not
//);

// $ json_data [ 'service_label_list'] = [ 'HUABEI_FUWU']; # √ Service Code HUABEI_FUWU: flower chanting service (only takes chant when the service only need to add the logo)
// $ json_data [ 'shop_ids'] = [ ]; # √ membership card store shelves id (Alipay stores id), both issuing merchant loyalty cards store id

// $ json_data [ 'pub_channels'] = array (# √ card template delivery channels
// Array (
// 'pub_channel' => 'SHOP_DETAIL', 1 #, SHOP_DETAIL: shop details page 2, PAYMENT_RESULT: successful payment page (payment successful page not supported)
// 'EXT_INFO' => '{}' # extension information, eliminating the need "Key": "value"
//)
//);

#card_level_conf this parameter in question do not add
// $ json_data [ 'card_level_conf'] = array (# √ card-level configuration
// Array (
// 'Level' => 'VIP3', # membership levels and open the card interface level the levle to be consistent
// 'level_show_name' => 'gold' membership level # displays the name of
// 'level_icon' => 'aPQKWaYXQZimxEFz09nTBQAAACMAAQED ', # membership level corresponding to the icon, through the interface (alipay.offline.material.image. upload) upload pictures
// 'level_desc' => 'gold members enjoy free parking, fueling 85% off', # membership level description
//),
// Array (
//// 'level' => 'VIP2',
// // 'level_show_name' => 'Minder',
//// 'level_icon' => 'rIBh_U4IRfmJtP97b-M5QQAAACMAAQED'
//// 'LEVEL_DESC' => 'silver members enjoy free parking, fueling a 10%',
// ),
Array // (
//// 'Level' => 'VIP1',
//// 'level_show_name' => 'Tiepai members'
//// 'level_icon' => 'U1GnhAh8QNGJxkBcBADyQAAAACMAAQED',
//// 'LEVEL_DESC' => 'Tiepai members enjoy free parking, fueling a 10%',
//)
//);
return $ json_data;

Guess you like

Origin www.cnblogs.com/simadongyang/p/10926610.html