RenewController.php 814 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace saas\controllers;
  3. use biz\saas\services\RenewService;
  4. use common\components\util;
  5. use Yii;
  6. class RenewController extends BaseController
  7. {
  8. public function actionList()
  9. {
  10. $where = [];
  11. $list = RenewService::getRenewList($where);
  12. util::success($list);
  13. }
  14. //微信支付购买 shish 2020.1.11
  15. public function actionWxPay()
  16. {
  17. $id = Yii::$app->request->get('id');
  18. $string = '{
  19. "code": 1,
  20. "msg": "操作成功",
  21. "data": {
  22. "appId": "wx193341a4a80f6ea3",
  23. "nonceStr": "tfunt38g0s8jcxo9g09ep3i65t9bwh1c",
  24. "package": "prepay_id=wx11163027396857ab83a8c8431935656300",
  25. "signType": "MD5",
  26. "timeStamp": "1578731428",
  27. "paySign": "B6197F9059697DC799273F36C7A17C43"
  28. }
  29. }';
  30. $r = json_decode($string, true);
  31. util::success($r['data']);
  32. }
  33. }