...
|
...
|
@@ -72,8 +72,8 @@ class Notify extends Api |
|
|
*/
|
|
|
private function handleCourseOrder($out_trade_no,$payamount,$paytype){
|
|
|
// 处理订单逻辑
|
|
|
// $order = CourseOrder::get(['order_sn'=>$out_trade_no,'pay_price'=>$payamount,'pay_type'=>$paytype]);
|
|
|
$order = CourseOrder::get(['order_sn'=>$out_trade_no,'pay_type'=>$paytype]);
|
|
|
$order = CourseOrder::get(['order_sn'=>$out_trade_no,'pay_price'=>$payamount,'pay_type'=>$paytype]);
|
|
|
// $order = CourseOrder::get(['order_sn'=>$out_trade_no,'pay_type'=>$paytype]);
|
|
|
if($order && $order['pay_status'] != '1'){
|
|
|
$order->save(['pay_status'=>'1','pay_time'=>time()]);
|
|
|
// 学习人数加1
|
...
|
...
|
@@ -131,8 +131,8 @@ class Notify extends Api |
|
|
*/
|
|
|
private function handleSecretOrder($out_trade_no,$payamount,$paytype){
|
|
|
// 处理订单逻辑
|
|
|
// $order = SecretOrder::get(['order_sn'=>$out_trade_no,'pay_price'=>$payamount,'pay_type'=>$paytype]);
|
|
|
$order = SecretOrder::get(['order_sn'=>$out_trade_no,'pay_type'=>$paytype]);
|
|
|
$order = SecretOrder::get(['order_sn'=>$out_trade_no,'pay_price'=>$payamount,'pay_type'=>$paytype]);
|
|
|
// $order = SecretOrder::get(['order_sn'=>$out_trade_no,'pay_type'=>$paytype]);
|
|
|
if($order && $order['pay_status'] != '1'){
|
|
|
$order->save(['pay_status'=>'1','pay_time'=>time()]);
|
|
|
// 购买量加1
|
...
|
...
|
@@ -190,8 +190,8 @@ class Notify extends Api |
|
|
*/
|
|
|
private function handleScoreOrder($out_trade_no,$payamount,$paytype){
|
|
|
// 处理订单逻辑
|
|
|
// $order = ScoreOrder::get(['order_sn'=>$out_trade_no,'pay_price'=>$payamount,'pay_type'=>$paytype]);
|
|
|
$order = ScoreOrder::get(['order_sn'=>$out_trade_no,'pay_type'=>$paytype]);
|
|
|
$order = ScoreOrder::get(['order_sn'=>$out_trade_no,'pay_price'=>$payamount,'pay_type'=>$paytype]);
|
|
|
// $order = ScoreOrder::get(['order_sn'=>$out_trade_no,'pay_type'=>$paytype]);
|
|
|
if($order && $order['pay_status'] != '1'){
|
|
|
$order->save(['pay_status'=>'1','pay_time'=>time()]);
|
|
|
// 增加积分
|
...
|
...
|
@@ -249,8 +249,8 @@ class Notify extends Api |
|
|
*/
|
|
|
private function handlePackageOrder($out_trade_no,$payamount,$paytype){
|
|
|
// 处理订单逻辑
|
|
|
// $order = PackageOrder::get(['order_sn'=>$out_trade_no,'pay_price'=>$payamount,'pay_type'=>$paytype]);
|
|
|
$order = PackageOrder::get(['order_sn'=>$out_trade_no,'pay_type'=>$paytype]);
|
|
|
$order = PackageOrder::get(['order_sn'=>$out_trade_no,'pay_price'=>$payamount,'pay_type'=>$paytype]);
|
|
|
// $order = PackageOrder::get(['order_sn'=>$out_trade_no,'pay_type'=>$paytype]);
|
|
|
if($order && $order['pay_status'] != '1'){
|
|
|
$order->save(['pay_status'=>'1','pay_time'=>time()]);
|
|
|
foreach ($order['package'] as $v){
|
...
|
...
|
|