Constants

AUTHORITY_TYPE_READ

AUTHORITY_TYPE_READ = "application_type_read"

AUTHORITY_TYPE_ADD

AUTHORITY_TYPE_ADD = "application_type_add"

AUTHORITY_TYPE_REMOVE

AUTHORITY_TYPE_REMOVE = "application_type_remove"

AUTHORITY_TYPE_EDIT

AUTHORITY_TYPE_EDIT = "application_type_edit"

AUTHORITY_CACHE_READ

AUTHORITY_CACHE_READ = "application_cache_read"

AUTHORITY_CACHE_CLEAR

AUTHORITY_CACHE_CLEAR = "application_cache_clear"

AUTHORITY_CONFIG_PAY_READ

AUTHORITY_CONFIG_PAY_READ = "application_config_pay_read"

AUTHORITY_CONFIG_PAY_EDIT

AUTHORITY_CONFIG_PAY_EDIT = "application_config_pay_edit"

AUTHORITY_CONFIG_READ

AUTHORITY_CONFIG_READ = "application_config_read"

AUTHORITY_CONFIG_EDIT

AUTHORITY_CONFIG_EDIT = "application_config_edit"

AUTHORITY_SLIDESHOW_ADD

AUTHORITY_SLIDESHOW_ADD = "application_slideshow_add"

AUTHORITY_SLIDESHOW_READ

AUTHORITY_SLIDESHOW_READ = "application_slideshow_read"

AUTHORITY_SLIDESHOW_EDIT

AUTHORITY_SLIDESHOW_EDIT = "application_slideshow_edit"

AUTHORITY_SLIDESHOW_REMOVE

AUTHORITY_SLIDESHOW_REMOVE = "application_slideshow_remove"

AUTHORITY_COUPON_ADD

AUTHORITY_COUPON_ADD = "application_coupon_add"

AUTHORITY_COUPON_READ

AUTHORITY_COUPON_READ = "application_coupon_read"

AUTHORITY_COUPON_EDIT

AUTHORITY_COUPON_EDIT = "application_coupon_edit"

AUTHORITY_COUPON_REMOVE

AUTHORITY_COUPON_REMOVE = "application_coupon_remove"

Methods

self_data()

self_data() : array

获取当前应用的数据

Returns

array

get_parent_recommend_user_credit()

get_parent_recommend_user_credit(integer  $credit_number, array  $config = array(), boolean  $throw = false) 

获取 推荐人积分奖励配置

Parameters

integer $credit_number

积分数量

array $config

配置信息

boolean $throw

是否报错

get_rmb_consume_user_credit()

get_rmb_consume_user_credit(integer  $money_fen, array  $config,   $throw = false) : array

获取 用户消费赠送积分配置

Parameters

integer $money_fen

消费金额

array $config

配置信息

$throw

Returns

array

get_pay_config()

get_pay_config(array  $data, array  $order_json, array  $config) 

获取支付配置 $config = array( "money_fen" 支付或提现的钱 "subject" 商品的标题/交易标题/订单标题/订单关键字等。 "body" 商品描述。商品简单描述,该字段须严格按照规范传递 "attach" 附加数据。附加数据,在查询API和支付通知中原样返回,该字段主要用于商户携带订单的自定义数据 "order_id" 订单ID "standby_order_id" 备用订单ID。当由业务订单ID和资金订单ID的时候,这里填资金订单ID )

Parameters

array $data

数据

array $order_json

订单配置

array $config

配置信息

qiniu_image_upload()

qiniu_image_upload(array  $config = array()) : array

上传图片到七牛云

Parameters

array $config

Returns

array

qiniu_image_remove()

qiniu_image_remove(  $config = array()) : NULL

删除七牛云图片 $config = array( "image_id" => 图片ID "qiniu_config" => 配置信息 );

Parameters

$config

Returns

NULL

kuaidi100_subscription_push()

kuaidi100_subscription_push(string  $shipping_no, string  $shipping_sign, array  $config = array()) 

快递100 订阅推送(订阅)

Parameters

string $shipping_no

运单号

string $shipping_sign

快递的类型,快递名称英文

array $config

快递100的配置

api_weixinpay_notify_url()

api_weixinpay_notify_url() 

订单的微信支付回调地址

APPLICATION ORDER WEIXINPAY NOTIFY URL {"class":"application/order","method":"api_weixinpay_notify_url"}

[{ "application_id":"chuanglianzhongyi", "application_name":"创联众益", "application_info":"", "application_json":{"host":"120.55.83.203","user":"clzy","pass":"Ptrg619JctG1moJQ","base":"clzy","prefix":""}, "application_on_off":"1", "application_state":"1", "application_warning":"", "application_sort":"0", "application_insert_time":"1547434268", "application_update_time":"1547434268" },{ "appid":"wx471f4de190c69a8b", "attach":"附加数据-小程序支付测试", "bank_type":"CFT", "cash_fee":"1", "fee_type":"CNY", "is_subscribe":"N", "mch_id":"1514039211", "nonce_str":"4yMLyCRz2q", "openid":"ouwyp5aeAlvhPZQSjhj9F78U8mxY", "out_trade_no":"20150806125346ABTTTTT", "result_code":"SUCCESS", "return_code":"SUCCESS", "sign":"91CD393553347C7917878FD3B6A7ECA9", "time_end":"20190126171936", "total_fee":"1", "trade_type":"JSAPI", "transaction_id":"4200000267201901261474017548"}]

api_alipay_notify_url()

api_alipay_notify_url(  $input = array()) 

支付宝支付回调

APPLICATIONORDERALIPAYNOTIFYURL {"class":"application/order","method":"api_alipay_notify_url"}

Parameters

$input

api_self_pay_state()

api_self_pay_state(array  $data = array()) : string

用户登录下查询自己订单支付状态

APPLICATIONORDERSELFPAYSTATE [{"order_id":"订单ID"}]

{"class":"application/order","method":"api_self_pay_state"}

0表示未支付;1表示支付成功。

Parameters

array $data

Returns

string —

返回订单ID

api_kuaidi100_notify_url()

api_kuaidi100_notify_url(  $input = array()) : void

快递100--修改订单物流状态

api: APPLICATIONORDERKUAIDI100NOTIFYURL {"class":"application/order","method":"api_kuaidi100_notify_url"}

Parameters

$input

api_self_buy_merchant_credit()

api_self_buy_merchant_credit(array  $data = array()) : string

用户登录下购买所属商家积分,生成订单

APPLICATIONORDERSELFBUYMERCHANTCREDIT [{"merchant_id":"商家ID","credit_number":"必须|积分数量","pay_method":"支付方式 weixinpay 微信支付、alipay 支付宝支付","weixin_login_code":"微信支付是需要,用于换取用户OpenID","weixin_trade_type":"微信的交易类型,必须是大写,如JSAPI|APP|MWEB|NATIVE"}]

{"class":"application/order","method":"api_self_buy_merchant_credit"}

Parameters

array $data

Returns

string —

返回订单ID

api_self_merchant_credit_give_user_credit()

api_self_merchant_credit_give_user_credit(array  $data = array()) : string

登录用户以商家积分赠送给指定用户

APPLICATIONORDERSELFMERCHANTCREDITGIVEUSERCREDIT [{"merchant_id":"商家ID","credit_number":"必须|转账积分数量","phone":"要赠送的用户手机号","comment":"备注信息"}]

{"class":"application/order","method":"api_self_merchant_credit_give_user_credit"}

Parameters

array $data

Returns

string —

订单ID

api_self_buy_user_money()

api_self_buy_user_money(array  $data = array()) : string

用户登录状态下购买余额,生成订单

APPLICATIONORDERSELFBUYUSERMONEY [{"money_fen":"必须|要购买余额(人民币,分)","pay_method":"支付方式 weixinpay 微信支付、alipay 支付宝支付","weixin_login_code":"微信支付是需要,用于换取用户OpenID","weixin_trade_type":"微信的交易类型,必须是大写,如JSAPI|APP|MWEB|NATIVE"}]

{"class":"application/order","method":"api_self_buy_user_money"}

Parameters

array $data

Returns

string —

返回订单ID

api_self_pay_merchant_money()

api_self_pay_merchant_money(array  $data = array()) : string

用户登录状态下第三方平台支付到商家钱包(商家收款),生成订单

APPLICATION ORDER SELF PAY MERCHANT MONEY APPLICATIONORDERSELFPAYMERCHANTMONEY

[{"merchant_id":"商家ID","cashier":"收银员的user_id","money_fen":"必须|要支付余额(人民币,分)","pay_method":"支付方式 weixinpay 微信支付、alipay 支付宝支付","weixin_login_code":"微信支付是需要,用于换取用户OpenID","weixin_trade_type":"微信的交易类型,必须是大写,如JSAPI|APP|MWEB|NATIVE","comment":"备注信息"}] {"class":"application/order","method":"api_self_pay_merchant_money"}

Parameters

array $data

Returns

string —

返回订单ID

api_self_user_money_pay_merchant_money()

api_self_user_money_pay_merchant_money(array  $data = array()) : string

登录用户以用户钱包余额支付商家钱包余额(商家收款)

APPLICATION ORDER SELF USER MONEY PAY MERCHANT MONEY APPLICATIONORDERSELFUSERMONEYPAYMERCHANTMONEY

[{"merchant_id":"商家ID","cashier":"收银员的user_id","money_fen":"必须|要支付余额(人民币,分)","comment":"备注信息"}]

{"class":"application/order","method":"api_self_user_money_pay_merchant_money"}

Parameters

array $data

Returns

string —

订单ID

api_self_daily_attendance_earn_user_credit_exist()

api_self_daily_attendance_earn_user_credit_exist() : string

检测用户今日是否已经签到(用户每日签到获得积分)

APPLICATIONORDERSELFDAILYATTENDANCEEARNUSERCREDITEXIST {"class":"application/order","method":"api_self_daily_attendance_earn_user_credit_exist"}

报错未签到,已经签到返回true

APPLICATION ORDER SELF DAILYATTENDANCE EARN USERCREDIT EXIST

Returns

string —

订单ID

api_self_daily_attendance_earn_user_credit()

api_self_daily_attendance_earn_user_credit() : string

用户每日签到获得积分

APPLICATIONORDERSELFDAILYATTENDANCEEARNUSERCREDIT {"class":"application/order","method":"api_self_daily_attendance_earn_user_credit"}

APPLICATION ORDER SELF DAILYATTENDANCE EARN USERCREDIT

Returns

string —

订单ID

api_self_user_money_earning_transfer_user_money()

api_self_user_money_earning_transfer_user_money(array  $data = array()) : string

用户的赠送收益转账到用户钱包(预付款) 满100元才能 转账(管理员可自定义设置)

APPLICATIONORDERSELFUSERMONEYEARNINGTRANSFERUSERMONEY [{"money_fen":"必须|要转账余额(人民币,分)","comment":"备注信息"}]

{"class":"application/order","method":"api_self_user_money_earning_transfer_user_money"}

APPLICATION ORDER SELF USERMONEYEARNING TRANSFER USERMONEY

Parameters

array $data

Returns

string —

订单ID

api_self_user_money_earning_transfer_user_money_help()

api_self_user_money_earning_transfer_user_money_help(array  $data = array()) : string

用户的赠送收益转账到用户扶贫账户 满100元才能 转账(管理员可自定义设置)

APPLICATIONORDERSELFUSERMONEYEARNINGTRANSFERUSERMONEYHELP [{"money_fen":"必须|要转账余额(人民币,分)","comment":"备注信息"}]

{"class":"application/order","method":"api_self_user_money_earning_transfer_user_money_help"}

Parameters

array $data

Returns

string —

订单ID

api_self_user_money_withdraw()

api_self_user_money_withdraw(  $input = array()) : string

用户钱包提现

api: APPLICATIONORDERSELFUSERMONEYWITHDRAW req: { withdraw_method [str] [必填] [提现方式] money_fen [int] [必填] [提现金额,单位分] comment [str] [可选] [备注信息] }

Parameters

$input

Returns

string —

订单ID

api_self_user_money_earning_withdraw()

api_self_user_money_earning_withdraw(array  $data = array()) : string

用户的赠送收益提现 APPLICATIONORDERSELFUSERMONEYEARNINGWITHDRAW [{"money_fen":"必须|要转账余额(人民币,分)","comment":"备注信息","withdraw_method":"提现方式 weixinpay 微信支付、alipay 支付宝支付","weixin_login_code":"微信支付是需要,用于换取用户OpenID","weixin_login_openid":"用户OpenID,当weixin_login_code参数不存在时需要","weixin_trade_type":"微信的交易类型,必须是大写,如JSAPI|APP|MWEB|NATIVE","alipay_account":"当支付宝提现时必填,支付宝账号","alipay_realname":"当支付宝提现时必填,真实姓名"}]

{"class":"application/order","method":"api_self_user_money_earning_withdraw"}

APPLICATION ORDER SELF USERMONEYEARNING WITHDRAW

Parameters

array $data

Returns

string —

订单ID