支付bug
This commit is contained in:
@@ -101,24 +101,6 @@ class Order extends base{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public function testPaystationLookup1(){
|
||||
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"ms"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$response = paystationLookup($data['ms']);
|
||||
$res = xml_to_array($response);
|
||||
return jsonSuccess($res);
|
||||
}
|
||||
|
||||
public function testPays(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
|
||||
@@ -769,46 +769,6 @@ class Preaccept extends Base
|
||||
$re['article'] = $article_info;
|
||||
$re['journal'] = $journal_info;
|
||||
return jsonSuccess($re);
|
||||
|
||||
|
||||
// if(intval($journal_info['fee'])==0||$article_info['ctime']<1735660800){//非收费期刊的文章直接返回
|
||||
// $re['state'] = 1;
|
||||
// $re['order'] = null;
|
||||
// $re["fee"] = 0;
|
||||
// return jsonSuccess($re);
|
||||
// }
|
||||
//
|
||||
// if($order_info==null){//这里有疑问
|
||||
// $re['state'] = 1;
|
||||
// $re['order'] = null;
|
||||
// $re["fee"] = 0;
|
||||
// return jsonSuccess($re);
|
||||
// }
|
||||
//// if($order_info['pay_type']==2){
|
||||
// $paystation = $this->paystation_obj->where("ps_id",$order_info['ps_id'])->find();
|
||||
// $order_info['paystation'] = $paystation;
|
||||
// if($order_info['state']==0){
|
||||
// $res = object_to_array(json_decode(paystationLookup($paystation['transaction_id'])));
|
||||
// if(isset($res['result']['success'])&&$res['result']['success']){
|
||||
// $this->article_obj->where("article_id",$order_info['article_id'])->update(['is_buy'=>1]);
|
||||
// $this->order_obj->where("order_id",$order_info['order_id'])->update(['state'=>1]);
|
||||
// $re['state'] = 1;
|
||||
// $re['fee'] = $journal_info['fee'];
|
||||
// $re['order'] = $order_info;
|
||||
// return jsonSuccess($re);
|
||||
// }else{
|
||||
// $re['state'] = 0;
|
||||
// $re['fee'] = $journal_info['fee'];
|
||||
// $re['order'] = $order_info;
|
||||
// return jsonSuccess($re);
|
||||
// }
|
||||
// }else{
|
||||
// $re['state'] = 1;
|
||||
// $re['fee'] = $journal_info['fee'];
|
||||
// $re['order'] = $order_info;
|
||||
// return jsonSuccess($re);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user