|
@@ -343,13 +343,19 @@ class PayProc {
|
|
|
));
|
|
|
}
|
|
|
|
|
|
- //发货
|
|
|
+ /**
|
|
|
+ * 发货
|
|
|
+ * @param \loyalsoft\pay\dbOrder $order
|
|
|
+ * @return bool
|
|
|
+ */
|
|
|
static function distributePayGoods($order = null) {
|
|
|
my_Assert($order->product_id != null, ErrCode::pay_order_product_id);
|
|
|
$user = ctx();
|
|
|
-
|
|
|
self::$retArr = array();
|
|
|
- if ($order->product_id >= 6 && $order->product_id <= 1000) {//充值表
|
|
|
+ if ($order->product_id == 1) {
|
|
|
+ $user->base()->Add_Cash($order->product_count);
|
|
|
+ self::$retArr[] = "2," . $order->product_count;
|
|
|
+ } else if ($order->product_id >= 6 && $order->product_id <= 1000) {//充值表
|
|
|
$mo = GameConfig::recharge_getItem($order->product_id);
|
|
|
my_Assert($mo != null, ErrCode::err_const_no);
|
|
|
|