Qc.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace app\api\controller;
  3. use app\api\controller\WeChart;
  4. use app\common\model\BaseGoods;
  5. use app\common\model\ChinaArea;
  6. use app\common\model\GoodsOrder;
  7. use app\common\model\OrderBill;
  8. use app\common\model\ReductionActivity;
  9. use app\common\model\StoreGoods;
  10. use app\common\model\User;
  11. use app\common\model\UserWallet;
  12. use app\common\service\Activity;
  13. use app\common\service\OrderCallback;
  14. use app\common\service\PurchaseLogic;
  15. use app\order\controller\StoreOrder;
  16. use EasyWeChat\MiniProgram\Application;
  17. use library\tools\Data;
  18. use think\Exception;
  19. use think\Session;
  20. use think\cache\driver\Redis;
  21. use EasyWeChat\Factory;
  22. use Firebase\JWT\JWT;
  23. use think\Db;
  24. use AlibabaCloud\Client\AlibabaCloud;
  25. use AlibabaCloud\Client\Exception\ClientException;
  26. use AlibabaCloud\Client\Exception\ServerException;
  27. use function AlibabaCloud\Client\value;
  28. use function Stringy\create;
  29. class Qc extends Base {
  30. public function index()
  31. {
  32. var_dump(669333);
  33. $order_info = GoodsOrder::with('orderItem')->where('id',1)->find()->toArray();
  34. $res = OrderCallback::goodsOrderCallBack($order_info,1);// 支付完成后回调
  35. dump($res);
  36. }
  37. public function index_match()
  38. {
  39. $password = "123456879_/";
  40. //密码必须包含大小写字母/数字/符号任意两者组合
  41. $regStr = "/^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)]|[\(\)])+$)([^(0-9a-zA-Z)]|[\(\)]|[a-z]|[A-Z]|[0-9]){6,16}$/";
  42. var_dump(preg_match($regStr, $password));
  43. }
  44. }