123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403 |
- <?php
- namespace huolib\withdraw;
- abstract class Driver {
- protected $notify_url = '';
- protected $return_url = '';
- protected $show_url = '';
- protected $order_id = '';
- protected $product_id = '';
- protected $product_price = '0.00';
- protected $product_name = '';
- protected $product_desc = '';
- protected $real_amount = 0.00;
- protected $ip = '';
- protected $payway = 'alipay';
- protected $order_class = '';
- protected $func = '';
- protected $open_id = '';
- protected $mem_id = '';
-
- protected $mem_reg_time = '';
- protected $mem_real_name = '';
- protected $mem_mobile = '';
- protected $payee_account = '';
- protected $payee_real_name = '';
- protected $payer_show_name = '';
- protected $remark = '';
- protected $check_name = 'NO_CHECK';
-
- abstract public function withDraw();
- abstract public function orderQuery($order_id, $ext = null);
-
- public function clientAjax($payway, $token, $status = 1, $is_native = 1, $cp_status = 1) {
- if (empty($token)) {
- return false;
- }
- $_rdata['pay_type'] = $payway;
- $_rdata['order_id'] = $this->order_id;
- $_rdata['product_price'] = $this->product_price;
- $_rdata['real_amount'] = $this->real_amount;
- $_rdata['token'] = $token;
- $_rdata['is_native'] = $is_native;
- $_rdata['status'] = $status;
- $_rdata['cp_status'] = $cp_status;
- return $_rdata;
- }
-
- public function getNotifyUrl() {
- return $this->notify_url;
- }
-
- public function setNotifyUrl($notify_url) {
- $this->notify_url = $notify_url;
- }
-
- public function getReturnUrl() {
- return $this->return_url;
- }
-
- public function setReturnUrl($return_url) {
- $this->return_url = $return_url;
- }
-
- public function getShowUrl() {
- return $this->show_url;
- }
-
- public function setShowUrl($show_url) {
- $this->show_url = $show_url;
- }
-
- public function getOrderId() {
- return $this->order_id;
- }
-
- public function setOrderId($order_id) {
- $this->order_id = $order_id;
- }
-
- public function getProductName() {
- return $this->product_name;
- }
-
- public function setProductName($product_name) {
- $this->product_name = $product_name;
- }
-
- public function getProductDesc() {
- return $this->product_desc;
- }
-
- public function setProductDesc($product_desc) {
- $this->product_desc = $product_desc;
- }
-
- public function getRealAmount() {
- return $this->real_amount;
- }
-
- public function setRealAmount($real_amount) {
- $this->real_amount = $real_amount;
- }
-
- public function getProductId() {
- return $this->product_id;
- }
-
- public function setProductId($product_id) {
- $this->product_id = $product_id;
- }
-
- public function getProductPrice() {
- return $this->product_price;
- }
-
- public function setProductPrice($product_price) {
- $this->product_price = $product_price;
- }
-
- public function getIp() {
- return $this->ip;
- }
-
- public function setIp($ip) {
- $this->ip = $ip;
- }
-
- public function getPayway() {
- return $this->payway;
- }
-
- public function setPayway($payway) {
- $this->payway = $payway;
- }
-
- public function getOrderClass() {
- return $this->order_class;
- }
-
- public function setOrderClass($order_class) {
- $this->order_class = $order_class;
- }
-
- public function getFunc() {
- return $this->func;
- }
-
- public function setFunc($func) {
- $this->func = $func;
- }
-
- public function getOpenId() {
- return $this->open_id;
- }
-
- public function setOpenId($open_id) {
- $this->open_id = $open_id;
- }
-
- public function getMemId() {
- return $this->mem_id;
- }
-
- public function setMemId($mem_id) {
- $this->mem_id = $mem_id;
- }
-
- public function getMemRegTime() {
- return $this->mem_reg_time;
- }
-
- public function setMemRegTime($mem_reg_time) {
- $this->mem_reg_time = $mem_reg_time;
- }
-
- public function getMemRealName() {
- return $this->mem_real_name;
- }
-
- public function setMemRealName($mem_real_name) {
- $this->mem_real_name = $mem_real_name;
- }
-
- public function getMemMobile() {
- return $this->mem_mobile;
- }
-
- public function setMemMobile($mem_mobile) {
- $this->mem_mobile = $mem_mobile;
- }
-
- public function getPayeeAccount() {
- return $this->payee_account;
- }
-
- public function setPayeeAccount($payee_account) {
- $this->payee_account = $payee_account;
- }
-
- public function getPayeeRealName() {
- return $this->payee_real_name;
- }
-
- public function setPayeeRealName($payee_real_name) {
- $this->payee_real_name = $payee_real_name;
- }
-
- public function getCheckName() {
- return $this->check_name;
- }
-
- public function setCheckName($check_name) {
- $this->check_name = $check_name;
- }
-
- public function getPayerShowName() {
- return $this->payer_show_name;
- }
-
- public function setPayerShowName($payer_show_name) {
- $this->payer_show_name = $payer_show_name;
- }
-
- public function getRemark() {
- return $this->remark;
- }
-
- public function setRemark($remark) {
- $this->remark = $remark;
- }
- }
|